diff --git a/.github/workflows/deploy-v2-preview.yml b/.github/workflows/deploy-v2-preview.yml new file mode 100644 index 0000000..87dca20 --- /dev/null +++ b/.github/workflows/deploy-v2-preview.yml @@ -0,0 +1,71 @@ +name: Deploy v2 Hugo site to Pages + +on: + push: + branches: ["v2-preview"] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false + +defaults: + run: + shell: bash + +jobs: + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.156.0 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: recursive + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: '1.26' + + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + + - name: Setup Hugo + 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: Build with Hugo + working-directory: v2 + env: + HUGO_ENVIRONMENT: production + HUGO_ENV: production + run: | + hugo \ + --gc --minify \ + --baseURL "${{ steps.pages.outputs.base_url }}/" + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: v2/public + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/content/_index.md b/content/_index.md index 3207769..4ca8d73 100644 --- a/content/_index.md +++ b/content/_index.md @@ -154,7 +154,7 @@ We work in an interdisciplinary, collaborative atmosphere with partners from aca ### Courses -