-
Notifications
You must be signed in to change notification settings - Fork 53
46 lines (38 loc) · 1.11 KB
/
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
39
40
41
42
43
44
45
46
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup node
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version-file: .nvmrc
- name: npm install and build
run: |
npm install
npm run build
npm run makepot
composer install --no-dev -o
npm run archive
- name: Release to Stable
uses: s0/git-publish-subdir-action@ac113f6bfe8896e85a373534242c949a7ea74c98 # 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@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: './docs'