From 2cec8538fba6af193eab96364b361728f846c2e8 Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Fri, 28 Jun 2024 14:11:23 +0200 Subject: [PATCH] Upload built page to release page. --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fa2764..723107c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,6 +81,19 @@ jobs: ${{ env.VERSION }}.${{ env.ARTIFACT_EXTENSION }} VERSION + - name: Upload release artifacts + if: | + github.event_name == 'release' || + github.event_name == 'push' && github.ref_name == 'master' || + github.event_name == 'push' && startsWith(github.ref_name, 'release-v') + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ env.VERSION }}.${{ env.ARTIFACT_EXTENSION }} + asset_name: build.${{ env.ARTIFACT_EXTENSION }} + tag: ${{ github.event.release.tag_name }} + overwrite: true + upload: runs-on: ubuntu-latest needs: [ ci ]