intro-to-software-testing/.github/workflows/github-pages.yml

27 lines
657 B
YAML
Raw Normal View History

2021-07-27 17:47:13 +09:00
name: github-pages
on:
push:
branches: [main]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2022-02-22 17:45:22 +09:00
- uses: actions/setup-node@v2
with: { node-version: lts/*, cache: yarn }
2021-07-27 17:47:13 +09:00
- name: Git config
run: |
git config user.name bot
git config user.email bot@example
git subtree add --prefix pages origin gh-pages
- name: Build
2022-02-22 18:02:22 +09:00
run: |
yarn install
2022-02-22 17:45:22 +09:00
yarn build
2021-07-27 17:47:13 +09:00
- name: Publish
run: |
git add -f pages
if git commit -m update; then
git subtree push --prefix pages origin gh-pages
fi