-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (36 loc) · 987 Bytes
/
ci-workflow.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
name: Deploy new development / trunk version (master)
on:
push:
branches: master
concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: true
lfs: true
- name: Get Node 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Build source files
shell: bash
run: |
sudo apt install -y subversion rsync git
yarn
npx tsc
yarn gulp deploy
git config --global user.email "[email protected]"
git config --global user.name "Chris Gårdenberg"
- name: Deploy trunk to SVN
env:
WP_USERNAME: ${{ secrets.WP_USERNAME }}
WP_PASSWORD: ${{ secrets.WP_PASSWORD }}
run: |
$GITHUB_WORKSPACE/scripts/trunk_gh.sh