This repository was archived by the owner on Jun 22, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (51 loc) · 1.43 KB
/
Copy pathbuild.yml
File metadata and controls
57 lines (51 loc) · 1.43 KB
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
51
52
53
54
55
56
57
name: Build
on:
push:
branches:
- "main"
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "17"
# - name: Commit files
# run: |
# git config --local user.email "action@github.com"
# git config --local user.name "GitHub Action"
# git add dist/* -f # build/*
# git commit -m "Push build changes" || echo "No changes were found."
#
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: ${{ github.ref }}
- name: Prepare deploy pages
run: |
BASE=".github/tuottaa/private/"
mkdir "$BASE"
cp index.html "$BASE"
cp index.css "$BASE"
cp -r src "$BASE"
cp -r assets "$BASE"
- name: Build pages
working-directory: .github/tuottaa
run: |
git clone https://github.com/QuantumSuite/Tuottaa
cd Tuottaa
yarn install
node src/index.js --config ../config.json
- name: Deploy pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .github/tuottaa/Tuottaa/public
publish_branch: gh-pages
user_name: GitHub Action
user_email: action@github.com