-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1.38 KB
/
publishing.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
# based on: https://raw.githubusercontent.com/brillout/vite-plugin-ssr/main/.github/workflows/docs.yml
name: publishing
on:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Checkout
uses: actions/checkout@v3
- name: Update the user feedback issue template with latest SHA
run: |
SED_ARGS="--in-place s/\([0-9a-f]\{40\}\)/${GITHUB_SHA}/ .github/ISSUE_TEMPLATE/10_feedback.md"
sed $SED_ARGS
git config --global user.name ci
git config --global user.email "[email protected]"
git add .github/ISSUE_TEMPLATE/10_feedback.md
git commit -m "Updated the user feedback issue template with latest SHA"
git push
- name: Install
run: npm install
- name: Build
run: npm run build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist/client
# Remove previous build files
clean: true
# Do not remove the `.nojekyll` file: we have manually added an empty `.nojekyll` file at the root of the `gh-pages` branch and we don't want having to re-create it after each build.
clean-exclude: |
.nojekyll