Skip to content

Merge pull request #64 from WheeskyJack/WheeskyJack-patch-2 #85

Merge pull request #64 from WheeskyJack/WheeskyJack-patch-2

Merge pull request #64 from WheeskyJack/WheeskyJack-patch-2 #85

name: Publish website to GitHub Pages
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Copy Files
uses: actions/checkout@v2
- name: Setup Git
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
- name: install
run: cd website/src && yarn install
- name: build
run: cd website/src && yarn build
- name: Publish website
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd website/src && GIT_USER="$GITHUB_ACTOR:$GITHUB_TOKEN" CURRENT_BRANCH=master yarn run publish-gh-pages