mirror of
https://github.com/driftywinds/cyan-builder.git
synced 2025-12-18 19:33:18 +00:00
Update mkcyan.yml
This commit is contained in:
39
.github/workflows/mkcyan.yml
vendored
39
.github/workflows/mkcyan.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Generate Cyan File
|
name: Generate Cyan File from Deb
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -31,39 +31,30 @@ jobs:
|
|||||||
- name: Add pipx to PATH
|
- name: Add pipx to PATH
|
||||||
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
|
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Install cgen (via cyan package)
|
- name: Install cgen (via cyan)
|
||||||
run: pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip
|
run: pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip
|
||||||
|
|
||||||
- name: Download .deb file
|
- name: Download .deb tweak file
|
||||||
run: |
|
run: |
|
||||||
curl -L "${{ github.event.inputs.deb_url }}" -o tweak.deb
|
curl -L "${{ github.event.inputs.deb_url }}" -o tweak.deb
|
||||||
|
|
||||||
- name: Extract base name of tweak file
|
- name: Extract tweak name from URL
|
||||||
id: name
|
id: extract_name
|
||||||
run: |
|
run: |
|
||||||
filename=$(basename "${{ github.event.inputs.deb_url }}")
|
filename=$(basename "${{ github.event.inputs.deb_url }}")
|
||||||
name="${filename%.deb}"
|
tweakname="${filename%.deb}"
|
||||||
echo "name=$name" >> $GITHUB_OUTPUT
|
echo "name=$tweakname" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Generate .cyan file
|
- name: Generate .cyan file using cgen
|
||||||
run: |
|
run: |
|
||||||
cgen -f tweak.deb -uwsgq -o "${{ steps.name.outputs.name }}.cyan"
|
cgen -f tweak.deb -uwsgq -o "${{ steps.extract_name.outputs.name }}.cyan"
|
||||||
|
|
||||||
- name: Create draft release
|
- name: Create draft release with cyan file
|
||||||
id: create_release
|
uses: ncipollo/release-action@v1
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
with:
|
||||||
tag_name: cyan-from-${{ steps.name.outputs.name }}
|
tag: cyan-from-${{ steps.extract_name.outputs.name }}
|
||||||
name: Cyan File for ${{ steps.name.outputs.name }}
|
name: Cyan File for ${{ steps.extract_name.outputs.name }}
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
env:
|
artifacts: ${{ steps.extract_name.outputs.name }}.cyan
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} # See note below
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
- name: Upload .cyan file to release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
tag_name: cyan-from-${{ steps.name.outputs.name }}
|
|
||||||
files: ${{ steps.name.outputs.name }}.cyan
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user