-
Notifications
You must be signed in to change notification settings - Fork 30
50 lines (44 loc) · 1.39 KB
/
Build-Assets.yaml
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
# Run build pipeline and commit the results so the assets users install dont ever get stale
name: Build Assets
on:
pull_request:
branches: [main]
# Don't trigger this action when only build targets change
paths-ignore:
- "inst/editor/build/**"
- "inst/treesitter-parsers/dist/**"
- "inst/vscode-extension/build/**"
- "inst/vscode-extension/*.vsix"
concurrency:
group: ci-build-${{ github.ref }}-1
cancel-in-progress: true
jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
env:
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
CI_COMMIT_AUTHOR: Continuous Integration
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: "inst/editor/build/** inst/treesitter-parsers/dist/ inst/vscode-extension/*.vsix"
commit_message: "Commit build assets"