3.1.4.1 - May 8th, 2024 #119
Workflow file for this run
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
name: Deploy to WordPress.org | |
on: | |
release: | |
types: [published] | |
jobs: | |
tag: | |
name: New tag | |
runs-on: ubuntu-latest | |
steps: | |
- 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/github-actions-slack@v2.7.0 | |
id: notify | |
with: | |
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} | |
slack-channel: C02SWND14 | |
slack-text: The pods tag has been deployed to svn.wordpress.org 🎉 |