-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (36 loc) · 1.07 KB
/
deploy.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
name: Deploy to WordPress.org
on:
release:
types: [published]
jobs:
tag:
name: New release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
node -v
npm --version
npm install
rm -rf node_modules/@types/algoliasearch-helper
npm run build
wget https://cdn.jsdelivr.net/npm/[email protected]/themes/reset-min.css -P build
wget https://cdn.jsdelivr.net/npm/[email protected]/themes/algolia-min.css -P build
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_USERNAME: ${{ secrets.WPORG_SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.WPORG_SVN_PASSWORD }}
SLUG: search-with-algolia-instantsearch-blocks