-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (51 loc) · 1.71 KB
/
main.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
49
50
51
52
53
54
55
56
57
58
59
name: Release build
on:
push:
tags:
- "*"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
fetch-depth: 0
token: ${{ secrets.TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: "16.13.1"
- name: Setup git configs
run: |
git checkout master
git config --global user.name "hackerhgl"
git config --global user.email "[email protected]"
- name: Install puppeteer dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgbm1
npm i
- name: Run puppeteer & commit screenshots
run: |
npm run local
git add .
git commit -m "Automated jpg & pdf generation"
git push origin master
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build # The folder the action should deploy.
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
- name: Windows release build for github
uses: ncipollo/release-action@v1
with:
artifacts: "build/assets/hackerhgl-cv.jpg,build/assets/hackerhgl-cv.pdf"
token: ${{ secrets.TOKEN }}
allowUpdates: true