From 2393a41c5d7a7dc42713422f26aa142e15e4a425 Mon Sep 17 00:00:00 2001 From: Oliver Warlow Date: Sat, 10 Aug 2024 12:47:20 +0000 Subject: [PATCH] Add simplified release workflow --- .github/workflows/nodocker.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/nodocker.yml diff --git a/.github/workflows/nodocker.yml b/.github/workflows/nodocker.yml new file mode 100644 index 000000000..eaaee3eaf --- /dev/null +++ b/.github/workflows/nodocker.yml @@ -0,0 +1,32 @@ +name: Build and Upload Github Release + +on: + push: + tags: + - 'v**' + + # Allow running manually from the actions tab + workflow_dispatch: + +concurrency: + group: "release" + cancel-in-progress: true + +jobs: + create-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + + - name: Generate Release Notes + run: bash ./.github/generate-release-notes.sh ${{ github.ref_name }} | tee RELEASE_NOTES.md + + - name: Archive Release + run: | + zip -r 5etools-${{ github.ref_name }}.zip . -x '*.git*' '*node_modules*' '*.github*' + + - name: Upload Release + run: | + gh release create "${{github.ref_name}}" --title "${{github.ref_name}}" --notes-file RELEASE_NOTES.md 5etools-${{ github.ref_name }}.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}