Skip to content

Deploy to Pages

Deploy to Pages #1

Workflow file for this run

name: Deploy to Pages
# Runs on pushes targeting things that look like the default branch
on:
push:
branches: ["main", "master"]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build site
run: |
mkdir -p result
cp index.html result/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./result
- name: Deploy site
id: deployment
uses: actions/deploy-pages@v4