-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.24 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
41
42
on:
workflow_dispatch:
push:
branches: ["main"]
jobs:
status:
runs-on: ubuntu-latest
name: Build Rojo Project
steps:
- name: Checkout files
uses: actions/checkout@v3
with:
token: ${{ secrets.BUILD_TOKEN }}
- name: Make
run: |
make build
- name: Build
uses: CompeyDev/[email protected]
with:
output: build/latest
type: rbxl
- name: Commit and Push
run: |
git config --global user.email "bot@gtihub"
git config --global user.name "Bot"
git diff --quiet build/latest.rbxl || (git add build/latest.rbxl && git commit -m "chore(deploy): build rojo project" && git push)
docs:
runs-on: ubuntu-latest
name: Publish Docs
steps:
- name: Checkout files
uses: actions/checkout@v3
with:
token: ${{ secrets.BUILD_TOKEN }}
- name: Make
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git config --global user.email "[email protected]"
git config --global user.name "Matyas Angyal"
make docs-publish
env:
GITHUB_TOKEN: ${{ secrets.BUILD_TOKEN }}