Skip to content

updating amgen scholars programmes #2

updating amgen scholars programmes

updating amgen scholars programmes #2

Workflow file for this run

# SPDX-License-Identifier: CC0-1.0
#
# SPDX-FileContributor: Antonio Niño Díaz, 2025
name: Build website
on:
push:
branches:
- 'master'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
packages: write
jobs:
generate_website:
name: Generate website
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: Clone project
uses: actions/checkout@v4
with:
ref: 'master'
fetch-depth: 0
- name: Install Hugo
run: |
wget https://github.com/gohugoio/hugo/releases/download/v0.140.2/hugo_extended_0.140.2_linux-amd64.tar.gz
tar -xf hugo_extended_0.140.2_linux-amd64.tar.gz
sudo mv hugo /usr/bin
hugo version
- name: Build documentation
run: |
# Generate website
hugo
# Create tarball with everything to upload to GitHub pages
cd public
tar -cvf ../web.tar ./*
- name: Upload repo artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: web.tar
if-no-files-found: error
publish_repo:
name: Publish website with GitHub pages
if: contains(github.ref,'refs/heads/master')
needs: [generate_website]
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4