Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
silv3rr authored Jul 23, 2024
1 parent 9973da2 commit f24e690
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,22 @@ jobs:
working-directory: ./src
run: make show

release:
name: Create Release
create-release:
name: Get artifacts, create release
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' }}
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: foo-tools
body: |
Includes foo-pre, mp3genre and modules
uses: actions/checkout@v3
- run: cd src && make distclean
- name: Create release using 'gh'
run: |
gh release create foo-tools-v$(date +%Y%m%d) $(find -type f -printf '%p ') --notes-file - <<'#####'
Includes foo-pre and modules
See [CHANGES](src/CHANGES)
#####
working-directory: /
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

draft: false
prerelease: false

0 comments on commit f24e690

Please sign in to comment.