diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 883f252..7561051 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,7 @@ jobs: curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar chmod +x wp-cli.phar mv wp-cli.phar /usr/local/bin/wp - php -d xdebug.mode=off "$(which wp)" i18n make-pot ${{github.workspace}} ${{github.workspace}}/languages/wp-rollback.pot --exclude="$(cat .distignore | tr "\n" "," | sed 's/,$/ /' | tr " " "\n"),src/**/*.js,*.js.map,blocks/**/*.js" + php -d xdebug.mode=off "$(which wp)" i18n make-pot ${{github.workspace}} ${{github.workspace}}/languages/wp-rollback.pot --exclude="$(cat .distignore | tr "\n" "," | sed 's/,$/ /' | tr " " "\n"),src/**/*.js,*.js.map" - name: Build assets for production run: npm run build @@ -58,12 +58,18 @@ jobs: # SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} # SLUG: wp-rollback - - name: Upload release asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload plugin artifact + uses: actions/upload-artifact@v3 with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ${{github.workspace}}/wp-rollback.zip - asset_name: wp-rollback.zip - asset_content_type: application/zip + name: wp-rollback + path: wp-rollback + +# - name: Upload release asset +# uses: actions/upload-release-asset@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ github.event.release.upload_url }} +# asset_path: ${{github.workspace}}/wp-rollback.zip +# asset_name: wp-rollback.zip +# asset_content_type: application/zip