Skip to content

Update newsLink to correct languages when needed (#672) #192

Update newsLink to correct languages when needed (#672)

Update newsLink to correct languages when needed (#672) #192

Workflow file for this run

# 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 }}