intro-to-graphql/.github/workflows/github-pages.yml

21 lines
659 B
YAML
Raw Normal View History

2021-05-27 19:54:00 +09:00
name: github-pages
on:
push:
2021-05-28 01:22:28 +09:00
branches: [main]
2021-05-27 19:54:00 +09:00
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build
run: |
git -c "user.name=bot" -c "user.email=bot@example" subtree add --prefix pages origin gh-pages
2021-07-20 00:03:28 +09:00
npx @marp-team/marp-cli README.md -o pages/index.html
2021-05-27 19:54:00 +09:00
- id: git_status
run: echo "::set-output name=mod::$(git status pages --porcelain)"
- name: push
if: steps.git_status.outputs.mod != ''
run: |
git -c "user.name=bot" -c "user.email=bot@example" commit -a -m update
git subtree push --prefix pages origin gh-pages