Skip to content

Commit

Permalink
Merge pull request #686 from Automattic/update/deploy-workflow
Browse files Browse the repository at this point in the history
Update deploy.yml
  • Loading branch information
GaryJones authored Jun 7, 2024
2 parents 3c7a27c + f1bad19 commit bebf621
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/deploy.yml
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 }}

0 comments on commit bebf621

Please sign in to comment.