-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (36 loc) · 901 Bytes
/
deploy.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
name: deploy
on:
push:
branches:
- main
jobs:
skip_trivial:
name: 'Skip Build and Deploy?'
continue-on-error: false
runs-on: ubuntu-latest
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
paths: '["dict/**", "game/**"]'
build:
name: 'Build and Deploy'
runs-on: ubuntu-latest
needs: [skip_trivial]
if: ${{ needs.skip_trivial.outputs.should_skip != 'true' }}
steps:
# Git repo set up
- name: Checkout commit
uses: actions/checkout@v2
with:
submodules: 'recursive'
# Make
- name: Make build
working-directory: ${{github.workspace}}
run: make
# Deploy on GitHub Pages
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: ${{github.workspace}}/build/