-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 874 Bytes
/
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
name: 'Build and deploy'
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-website:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm install
- name: Update website
run: npm run render
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
single-commit: true
git-config-name: Tibia boss checker
git-config-email: bosses@tibiamaps.io