From 5eaa5cdad6ef610a3f831aa6a3a14c851aff2196 Mon Sep 17 00:00:00 2001 From: Joonas Javanainen Date: Wed, 27 Dec 2023 14:35:00 +0200 Subject: [PATCH] WIP: Test release flow --- .github/workflows/ci.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a4f9b8..fcfb842 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,5 @@ name: ci -on: - pull_request: - push: - branches: - - main +on: push jobs: build_and_test: @@ -29,3 +25,19 @@ jobs: name: distribution path: build/distributions/*.zip if-no-files-found: 'error' + release: + name: Create release + runs-on: ubuntu-latest + needs: build_and_test + permissions: + contents: write + steps: + - uses: actions/download-artifact@v4 + with: + name: distribution + - name: Create release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create "${{ github.ref_name }}" + gh release upload "${{ github.ref_name }}" build/distributions/*.zip