-
Notifications
You must be signed in to change notification settings - Fork 5
61 lines (49 loc) · 2.22 KB
/
generate-zip.yml
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
name: Generate ZIP for Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build PHP
run: composer install --no-dev --optimize-autoloader
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'yarn'
- name: Install packages w/ Yarn
run: yarn install
- name: Build with Yarn
run: yarn build
- name: Create release ZIP
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: 'wp-rainbow.zip'
exclusions: '/*node_modules/* composer.* wp-rainbow-filter-examples.php readme.md package.json .eslintrc.js phpcs.xml phpunit.xml bin/ bin/* /*tests/* yarn.lock .wordpress-org/ .wordpress-org/* src/ src/* src/css/ src/css/* src/utilities/ src/utilities/* blocks/ blocks/* blocks/login-block/ blocks/login-block/* webpack.config.js .gitignore /*.git/* .babelrc /*.phpcs/* /*.github/*'
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: wp-rainbow
path: wp-rainbow.zip
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: wp-rainbow.zip application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Unzip folder for WP.org
uses: montudor/action-zip@v1
with:
args: unzip -qq wp-rainbow.zip -d rainbowkit-login-web3-integration-for-sign-in-with-ethereum
- name: Upload plugin to WP.org
uses: 10up/[email protected]
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: rainbowkit-login-web3-integration-for-sign-in-with-ethereum
BUILD_DIR: ./rainbowkit-login-web3-integration-for-sign-in-with-ethereum