-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (33 loc) · 1.01 KB
/
docs.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: Docs
on:
pull_request:
release:
types: [published]
env:
REPO_URL: github.com/vocksel/flipbook
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Roblox/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/[email protected]
- name: Install Moonwave
run: npm install -g moonwave
- name: Extract
run: moonwave-extractor extract src
- name: Build
run: moonwave build
- name: Configure Git user
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Use GITHUB_TOKEN to allow pushing
run: git remote set-url origin https://github-actions[bot]:${{ env.GITHUB_TOKEN }}@${{ env.REPO_URL }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy
if: ${{ github.event.release }}
run: moonwave build --publish