Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Commit

Permalink
add action
Browse files Browse the repository at this point in the history
  • 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.
30 changes: 30 additions & 0 deletions ia-guide/.github/workflows/build.yml
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

0 comments on commit 8685189

Please sign in to comment.