generated from axherrm/WebCVTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.46 KB
/
on-core-release.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
47
48
name: Update Core
on:
repository_dispatch:
types: [release]
jobs:
release:
name: Update Core
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
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
token: ${{ secrets.PAT }}
- name: Git Submodule Update
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: Commit updated submodule
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update core to ${{ github.event.client_payload.version }}
token: ${{ secrets.PAT }}
- uses: actions/setup-node@v4
with:
# Version Spec of the version to use in SemVer notation.
# It also emits such aliases as lts, latest, nightly and canary builds
# Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node
node-version: 20
- name: Build All-in-one HTML
run: |
cd core
npm install
npm run build-single-file
cd single-dist
mv index.html CV.html
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.client_payload.version }}
files: CV.html