Skip to content

Commit

Permalink
CI: Fix artifacts name to follow tag and hash information
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Aug 2, 2024
1 parent 7e0fbf3 commit 8a1b80b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0

- uses: oven-sh/setup-bun@v1
with:
Expand All @@ -92,19 +93,23 @@ jobs:
bun run build
bun deploy:electron
- name: Build name
run: |
mv dist/Cockpit*.${{ matrix.extension }} dist/Cockpit-${{ matrix.suffix }}-$(git describe --tags).${{ matrix.extension }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: cockpit-${{ matrix.suffix }}
path: dist/Cockpit*.${{ matrix.extension }}
path: dist/Cockpit-${{ matrix.suffix }}-*.${{ matrix.extension }}
if-no-files-found: error

- name: Upload Release
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/') && success()
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/Cockpit*.${{ matrix.extension }}
path: dist/Cockpit-${{ matrix.suffix }}-*.${{ matrix.extension }}
tag: ${{ github.ref }}
overwrite: true
prerelease: true
Expand All @@ -119,6 +124,7 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0

- uses: oven-sh/setup-bun@v1
with:
Expand All @@ -137,6 +143,10 @@ jobs:
bun run build
env DEBUG="@malept/flatpak-bundler" bun deploy:flatpak
- name: Build name
run: |
mv dist/Cockpit*.${{ matrix.extension }} dist/Cockpit-${{ matrix.suffix }}-$(git describe --tags).flatpak
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 8a1b80b

Please sign in to comment.