-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.56 KB
/
deploy.yml
File metadata and controls
62 lines (50 loc) · 1.56 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Deploy to WordPress.org
on:
push:
tags:
- '*.*.*'
permissions:
contents: write
jobs:
deploy:
name: Deploy to WordPress.org
runs-on: ubuntu-latest
environment:
name: production
url: https://wordpress.org/plugins/${{ github.event.repository.name }}/
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
tools: composer
- name: Install Composer Dependencies
run: composer install --no-dev --prefer-dist
- name: Setup Node.JS
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Install npm dependencies
run: npm install
- name: Build Assets
run: bash bin/build.sh ${{ github.ref }}
- name: Generate readme.txt
uses: tarosky/workflows/actions/wp-readme@main
- name: Versioning
uses: tarosky/workflows/actions/versioning@main
with:
version: ${{ github.ref }}
files: readme.txt,taro-clockwork-post.php
- name: Deploy to WordPress Directory
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_USERNAME: ${{ secrets.WP_ORG_USERNAME_TAROSKY }}
SVN_PASSWORD: ${{ secrets.WP_ORG_PASSWORD_TAROSKY }}
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
with:
files: ${{ github.workspace }}/${{ github.event.repository.name }}.zip