Skip to content

Commit

Permalink
Add GitHub Actions workflow for deploying to WordPress.org
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankristianto committed Apr 4, 2024
1 parent b9e8817 commit 4785bef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
release:
name: Publish to WordPress.org
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build # Remove or modify this step as needed
run: |
composer install --no-dev --ignore-platform-reqs
npm ci && 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 }}
SLUG: biometric-authentication
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,3 @@ jobs:
ORIGINAL_TAG_PREFIX: original/
OUTPUT_BUILD_INFO_FILENAME: build.json
TEST_TAG_PREFIX: test/
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: biometric-authentication

0 comments on commit 4785bef

Please sign in to comment.