-
Notifications
You must be signed in to change notification settings - Fork 53
38 lines (38 loc) · 948 Bytes
/
stable.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: Release to Stable
on:
push:
branches:
- trunk
jobs:
release:
name: Push (merge) to trunk
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Node.js 16.x
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: npm install and build
run: |
npm install
npm run build
npm run makepot
composer install --no-dev
npm run archive
- name: Release to Stable
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: stable
FOLDER: release
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: 'Release: ({sha}) {msg}'
- name: Build docs
run: npm run build:docs
- name: Deploy docs update
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: './docs'