-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy on release (and manually), not on the adding of a tag.
- Loading branch information
Showing
1 changed file
with
18 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
name: Deploy to WordPress.org | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
release: | ||
types: [released] | ||
# Allow manual triggering of the workflow. | ||
workflow_dispatch: | ||
jobs: | ||
tag: | ||
name: New tag | ||
release: | ||
name: New release to WordPress.org | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Build # Remove or modify this step as needed | ||
run: | | ||
npm install | ||
npm run build | ||
- name: WordPress Plugin Deploy | ||
uses: 10up/action-wordpress-plugin-deploy@stable | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build # Remove or modify this step as needed | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Push to WordPress.org | ||
uses: 10up/action-wordpress-plugin-deploy@stable | ||
env: | ||
SLUG: liveblog | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} |