DOC: remove Processes from astronomy (#673) #193
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gohugo.io/hosting-and-deployment/hosting-on-github/ | |
name: github pages | |
on: | |
push: | |
branches: | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: pages | |
cancel-in-progress: false | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Read Hugo version | |
id: hugo-version | |
run: cat netlify.toml | grep HUGO_VERSION | tr -d ' "' >> "$GITHUB_OUTPUT" | |
- name: Install Hugo CLI | |
env: | |
HUGO_VERSION: ${{ steps.hugo-version.outputs.HUGO_VERSION }} | |
run: | | |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ | |
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb | |
- name: Generate config | |
run: python gen_config.py | |
- name: Build with Hugo | |
run: hugo --gc --minify | |
- name: Deploy pages | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
folder: ./public | |
repository-name: numpy/numpy.github.com | |
branch: main | |
token: ${{ secrets.PERSONAL_TOKEN }} |