-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.09 KB
/
build.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
name: Build
on:
push:
branches: main
workflow_dispatch:
concurrency:
group: ci-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- run: bundle install
- run: npm ci --force
- run: npm run build
- name: Deploy
working-directory: ./docs/_site
run: |
touch .nojekyll
git init
git config user.name "Victor"
git config user.email "[email protected]"
git add .
git commit -m "Auto-build ${GITHUB_SHA}"
git push --force https://theonlypwner:${GH_TOKEN}@github.com/vwww/victorz.ca.git HEAD
rm CNAME
mv robots2.txt robots.txt
git add .
git commit --amend --no-edit
git push --force https://theonlypwner:${GH_TOKEN}@github.com/vwww/vwww.github.io.git HEAD
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}