forked from pods-framework/pods
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.21 KB
/
wordpress-plugin-deploy.yml
File metadata and controls
37 lines (37 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy to WordPress.org
permissions:
id-token: write
attestations: write
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@2.3.0
id: deploy
with:
generate-zip: true
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
VERSION: ${{ env.PLUGIN_VERSION }}
- name: Generate build provenance attestation
uses: johnbillion/action-wordpress-plugin-attestation@0.7.1
with:
zip-path: ${{ steps.deploy.outputs.zip-path }}
- 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 ${{ github.event.repository.name }} tag has been deployed to svn.wordpress.org 🎉