mirror of
https://github.com/farfalleflickan/cmyflix.git
synced 2025-02-05 08:45:31 +00:00
Update main.yml
This commit is contained in:
parent
dcb1de38c9
commit
28ea811f95
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@ -20,14 +20,12 @@ jobs:
|
||||
|
||||
- name: Build DEB
|
||||
run: |
|
||||
# Your command that ultimately places a .deb file under deb/
|
||||
make deb
|
||||
|
||||
- name: Upload DEB artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: deb-package
|
||||
# Upload all .deb files in deb/ (assuming only one is created)
|
||||
path: deb/*.deb
|
||||
|
||||
create-release:
|
||||
@ -40,11 +38,13 @@ jobs:
|
||||
name: deb-package
|
||||
path: .
|
||||
|
||||
- name: Find the DEB filename
|
||||
- name: Find the DEB filename and extract version
|
||||
id: find_deb
|
||||
run: |
|
||||
# We expect exactly one .deb in the current directory
|
||||
echo "deb_file=$(ls *.deb)" >> $GITHUB_OUTPUT
|
||||
DEB_FILE=$(ls *.deb)
|
||||
echo "deb_file=$DEB_FILE" >> $GITHUB_OUTPUT
|
||||
VERSION=$(echo "$DEB_FILE" | sed -E 's/^.*_([0-9.]+)_.*/\1/')
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create or Update GitHub Release
|
||||
id: create_release
|
||||
@ -52,9 +52,9 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref_name }}
|
||||
release_name: "Release ${{ github.ref_name }}"
|
||||
draft: true
|
||||
tag_name: ${{ steps.find_deb.outputs.version }}
|
||||
release_name: "cmyflix v${{ steps.find_deb.outputs.version }}"
|
||||
draft: true
|
||||
prerelease: false
|
||||
|
||||
- name: Upload DEB to Release
|
||||
|
Loading…
Reference in New Issue
Block a user