ci: change upload release asset action #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | ||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
env: | ||
PLUGIN_SLUG: alt-text-generator-gpt-vision | ||
jobs: | ||
deploy: | ||
name: Deploy to WP.org | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 🛠️ Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "npm" | ||
- run: npm ci --production | ||
- run: npm run build | ||
- name: 🐘 Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "8.1" | ||
- name: 📥 Install PHP dependencies | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
composer-options: "--no-dev --ignore-platform-reqs --classmap-authoritative" | ||
- name: WordPress Plugin Deploy | ||
uses: 10up/action-wordpress-plugin-deploy@stable | ||
with: | ||
generate-zip: true | ||
env: | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD } | ||
Check failure on line 40 in .github/workflows/relesase.yml GitHub Actions / ReleaseInvalid workflow file
|
||
SLUG: ${{ env.PLUGIN_SLUG }} | ||
- name: Upload release asset | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ${{github.workspace}}/${{ env.PLUGIN_SLUG }}.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |