Skip to content

Commit

Permalink
github: copy gh-pages workflow from the main nfd
Browse files Browse the repository at this point in the history
  • Loading branch information
marquiz committed Mar 12, 2021
1 parent 36c3573 commit 9a162e5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: gh-pages
on:
push:
branches:
- master
- release-*
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
build:
name: Update gh-pages
runs-on: ubuntu-latest
steps:

- name: Check out repo
uses: actions/checkout@v1
with:
fetch-depth: 0

- name: Fetch gh-pages branch
run: git fetch --no-tags --prune --depth=1 origin refs/heads/gh-pages:refs/heads/gh-pages

- name: Build site
run: |
git config user.name "Github Actions"
git config user.email "no-reply@github.com"
./scripts/github/update-gh-pages.sh
- name: Deploy site
run: git push -f https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} gh-pages

0 comments on commit 9a162e5

Please sign in to comment.