Update deploy-org.yml #32
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: Deploy to WordPress.org | |
on: | |
push: | |
tags: | |
- "*" | |
permissions: | |
contents: write | |
jobs: | |
tag: | |
name: Deploy plugin for new Tag | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 12.1.0 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 12.1.0 | |
- uses: actions/checkout@master | |
- name: Npm install and build | |
run: | | |
rm -r package-lock.json | |
npm i | |
npm run build | |
npm run makepot | |
- name: Use desired version of php | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
- name: Composer install and build # Remove or modify this step as needed | |
run: | | |
composer install | |
composer update | |
composer dump-autoload -o | |
composer install --no-dev | |
composer dump-autoload -o | |
- name: WordPress Plugin Deploy | |
id: deploy | |
uses: 10up/action-wordpress-plugin-deploy@stable | |
with: | |
dry-run: true | |
generate-zip: true | |
env: | |
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
SLUG: wedevs-project-manager | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: true | |
prerelease: true | |
- name: Upload release asset | |
uses: softprops/action-gh-release@v2 | |
env: | |
# Note, this is an exception to action secrets: GH_TOKEN is always available and provides access to | |
# the current repository this action runs in. | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
# Provide what the file should be named when attached to the release (plugin-name.zip) | |
files: ${{ github.workspace }}/${{ github.event.repository.name }}.zip | |