27 lines
600 B
YAML
27 lines
600 B
YAML
name: website
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v2
|
|
-
|
|
name: Generate Chisai
|
|
run: python3 src/build.py --prod
|
|
#-
|
|
#name: Create cname file
|
|
# run: echo 'mydomain.com' > build/CNAME
|
|
-
|
|
name: Deploy to GitHub Pages
|
|
if: success()
|
|
uses: crazy-max/ghaction-github-pages@v2
|
|
with:
|
|
target_branch: gh-pages
|
|
build_dir: build
|
|
keep_history: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|