This repository has been archived by the owner on Sep 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Loquacity
authored and
Cameron Shorter
committed
Feb 28, 2021
1 parent
33ec569
commit 8685189
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Go 1.13 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13.x | ||
persist-credentials: false | ||
|
||
- name: build game | ||
run: | | ||
go get github.com/tmedwards/tweego | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
tweego ia-cyoa.tw -o dist/index.html | ||
- name: Deploy | ||
uses: loquacity/actions-gh-pages@v2 | ||
env: | ||
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PUBLISH_BRANCH: gh-pages | ||
PUBLISH_DIR: ./dist | ||
CLEAN: true |