-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.07 KB
/
Copy pathrelease.yml
File metadata and controls
40 lines (34 loc) · 1.07 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
38
39
40
name: Deploy to WordPress.org
on:
release:
types: [released]
jobs:
deploy:
name: Deploy to WP.org
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Build release
run: |
npm install
mkdir -p release/trunk
grunt build:release
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
dry-run: false
env:
BUILD_DIR: ./release/trunk
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
# After the deploy, we also want to create a zip and upload it to the release on GitHub. We don't want
# users to have to go to the repository to find our plugin :).
- name: Upload release asset
uses: softprops/action-gh-release@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ github.workspace }}/${{ github.event.repository.name }}.zip