diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..339e115 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0d5fcf5..60ae8e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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