Skip to content

Commit

Permalink
Create release from tag in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hudson-newey committed Sep 29, 2024
1 parent cdd745a commit a48a03d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
publish:
runs-on: ubuntu-latest
permissions:
packages: write
contents: write

steps:
Expand Down Expand Up @@ -36,7 +37,15 @@ jobs:
sha: context.sha
})
- name: Publish to GitHub Releases
- name: Create Release
uses: elgohr/Github-Release-Action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: ${{ steps.date.outputs.date }}
tag: ${{ steps.date.outputs.date }}

- name: Publish Assets to GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.date.outputs.date }} ./build/2rm

0 comments on commit a48a03d

Please sign in to comment.