Skip to content

Commit

Permalink
Upload artifact for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinWalker committed Dec 29, 2023
1 parent 56fbc38 commit 65929f4
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 65929f4

Please sign in to comment.