Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Fix update release action to run on every commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloMK7 committed Mar 8, 2024
1 parent 2387b5d commit d679035
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,21 @@ jobs:
runs-on: ubuntu-latest
needs: [windows, linux, macos-universal, android, source]
if: ${{ startsWith(github.ref, 'refs/heads/master') && github.repository == 'PabloMK7/citra' }}
permissions:
contents: write
packages: write
steps:
- name: Set outputs
id: short_sha
run: echo "short_sha=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT
- uses: actions/download-artifact@v4
- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
tag_name: r${{ steps.short_sha.outputs.short_sha }}
release_name: r${{ steps.short_sha.outputs.short_sha }}
draft: false
prerelease: false
- name: Upload artifacts
Expand Down

0 comments on commit d679035

Please sign in to comment.