chore(deploy): build rojo project #206
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/rojo-build-action@0.1.5 | |
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 "matyasjay@gmail.com" | |
git config --global user.name "Matyas Angyal" | |
make docs-publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.BUILD_TOKEN }} |