From a48a03d029581297fed7b08807a77b917d39f00b Mon Sep 17 00:00:00 2001 From: hudson-newey Date: Sun, 29 Sep 2024 23:22:28 +1000 Subject: [PATCH] Create release from tag in workflow --- .github/workflows/publish.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fe2b0e0..2a255cd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,6 +8,7 @@ jobs: publish: runs-on: ubuntu-latest permissions: + packages: write contents: write steps: @@ -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