Skip to content

Update Github Action #390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 13 additions & 19 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://github.com/chabad360/hugo-gh-pages
name: github pages

on:
Expand All @@ -6,25 +7,18 @@ on:
- master

jobs:
deploy:
runs-on: ubuntu-18.04
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout Repo
uses: actions/checkout@master
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.74.3' # Locked version, see issue #363
extended: true

- name: Build
run: hugo

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
hugoVersion: 'extended_0.74.3' # Locked version, see issue #363
submodules: true
- name: Publish Site
uses: chabad360/hugo-gh-pages@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
branch: master
repo: numpy/numpy.github.com
siteDir: /github/workspace/public
githubToken: ${{ secrets.PERSONAL_TOKEN }}