Skip to content

publish static content to Github Pages #2

publish static content to Github Pages

publish static content to Github Pages #2

Workflow file for this run

name: publish static content to Github Pages
on:
workflow_dispatch:
push:
branches: ["main"]
paths:
- pages/*
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
publish:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/checkout
- name: checkout
uses: actions/[email protected]
# https://github.com/marketplace/actions/configure-github-pages
- name: setup Pages
uses: actions/[email protected]
# https://github.com/marketplace/actions/upload-github-pages-artifact
- name: upload artifact
uses: actions/[email protected]
with:
# Upload entire repository
path: pages
# https://github.com/marketplace/actions/deploy-github-pages-site
- name: deploy to GitHub Pages
id: deployment
uses: actions/[email protected]