Skip to content

Commit

Permalink
Same workflow for release and normal push with conditional execution
Browse files Browse the repository at this point in the history
  • Loading branch information
julianjandeleit authored Apr 29, 2024
1 parent 9ea648b commit 84b5c3b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,9 @@ jobs:
sudo make install && source /etc/environment
- name: Build artifact
run: sudo make build -e VERSION=${{ github.REF_NAME }}
- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v2
with:
name: ai-cli.deb
path: src.deb
- name: Rename artifact
id: rename-artifact
run: mv src.deb ai-cli.deb

# Upload the artifact to the release
- name: Get Release ID
Expand All @@ -57,6 +54,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >-
gh release upload
'${{ github.ref_name }}' src.deb
'${{ github.ref_name }}' ai-cli.deb
--repo '${{ github.repository }}'

0 comments on commit 84b5c3b

Please sign in to comment.