-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deploy code to use the package.json version for the release
- Loading branch information
1 parent
9558c1f
commit 99b1aff
Showing
1 changed file
with
6 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -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 | ||
|