From e56d41435737ee3d4dbf1791122d980f1cb77928 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Wed, 5 May 2021 15:14:45 -0600 Subject: [PATCH] better uploader to allow rebuilds --- .github/workflows/build.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6f9d9b21b..29c7bde3e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,6 +12,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Extract Tag + run: echo "PACKAGE_VERSION=${{ github.ref }}" >> $GITHUB_ENV + - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -38,13 +41,14 @@ jobs: run: | bash ./build-grav.sh - - name: Upload Grav Release Assets - id: upload-release-asset - uses: alexellis/upload-assets@0.2.3 - env: - GITHUB_TOKEN: ${{ secrets.GLOBAL_TOKEN }} + - name: Upload packages to release + uses: svenstaro/upload-release-action@v2 with: - asset_paths: '["./grav-dist/*.zip"]' + repo_token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ env.PACKAGE_VERSION }} + file: ./grav-dist/*.zip + overwrite: true + file_glob: true slack: name: Slack