mirror of
https://github.com/go-task/task.git
synced 2024-12-14 10:52:43 +02:00
36 lines
802 B
YAML
36 lines
802 B
YAML
name: Website Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
website-deploy:
|
|
name: Website Deploy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16.x
|
|
cache: yarn
|
|
cache-dependency-path: ./docs/yarn.lock
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --frozen-lockfile
|
|
working-directory: ./docs
|
|
|
|
- name: Build website
|
|
run: yarn build
|
|
working-directory: ./docs
|
|
|
|
- name: Website Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GH_PAT }}
|
|
publish_dir: ./docs/build
|
|
user_name: task-bot
|
|
user_email: 106601941+task-bot@users.noreply.github.com
|