-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (55 loc) · 1.76 KB
/
deploy-wp-plugin.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
62
63
64
name: DEPLOY wp plugin
on:
push:
branches:
- integ
# tags:
# - "v*"
jobs:
deploy:
name: Deploy Plugin to WordPress.org
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Print forge location
run: which forge
- name: Print $HOME
run: echo $HOME
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8.15.8
- name: Build wp plugin
run: pnpm deploy:plugin
env:
ENVIR: PROD
NODE_DEBUG: false
GIT_BRANCH: main
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
ALCHEMY_API_KEY_POLYGON: ${{ secrets.ALCHEMY_API_KEY_POLYGON }}
ALCHEMY_API_KEY_ARBITRUM: ${{ secrets.ALCHEMY_API_KEY_ARBITRUM }}
ALCHEMY_API_KEY_OPTIMISM: ${{ secrets.ALCHEMY_API_KEY_OPTIMISM }}
ALCHEMY_API_KEY_BASE: ${{ secrets.ALCHEMY_API_KEY_BASE }}
ANKR_API_KEY: ${{ secrets.ANKR_API_KEY }}
COVALENT_API_KEY: ${{ secrets.COVALENT_API_KEY }}
NFT_STORAGE_KEY: ${{ secrets.NFT_STORAGE_KEY }}
# - name: Deploy
# uses: nk-o/action-wordpress-plugin-deploy@master
# env:
# SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
# SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
# SOURCE_DIR: wordpress/plugins/kredeum-nfts/
# ASSETS_DIR: wordpress/assets
# SLUG: kredeum-nfts