Skip to content

Pages

Pages #29

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
---
name: Pages
on:
workflow_dispatch:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
out_path: out
token: ${{ secrets.GITHUB_TOKEN }}
- run: cp -r ./images/ ./out/images/
- uses: actions/upload-pages-artifact@v3
with:
path: out
deploy-production:
needs: build
if: vars.DEVELOPMENT != true
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
id: deployment
deploy-development:
needs: build
if: vars.DEVELOPMENT == true
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: development
url: ${{ steps.change_pages_url.outputs.new_page_url }}
steps:
- uses: actions/deploy-pages@v4
id: deployment
- run: echo "new_page_url=${{ steps.deployment.outputs.page_url }}development/" >> $GITHUB_OUTPUT
id: change_pages_url