Skip to content

Commit

Permalink
Update deploy code to use the package.json version for the release
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Dec 11, 2023
1 parent 9558c1f commit 99b1aff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/wordpress-plugin-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ jobs:
name: New tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check the version number from package.json
shell: bash
run: echo "PLUGIN_VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV
- name: Checkout the code
uses: actions/checkout@v4
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@master
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
VERSION: ${{ env.PLUGIN_VERSION }}
- name: Send message to Slack API
uses: archive/[email protected]
id: notify
Expand Down

0 comments on commit 99b1aff

Please sign in to comment.