Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 34 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
- name: Deploy GitHub Pages site
uses: actions/[email protected]
with:
# GitHub token
token: # default is ${{ github.token }}
# Time in milliseconds after which to timeout and cancel the deployment (default: 10 minutes)
timeout: # optional, default is 600000
# Maximum number of status report errors before cancelling a deployment (default: 10)
error_count: # optional, default is 10
# Time in milliseconds between two deployment status report (default: 5 seconds)
reporting_interval: # optional, default is 5000
# Name of the artifact to deploy
artifact_name: # optional, default is github-pages
# Is this attempting to deploy a pull request as a GitHub Pages preview site? (NOTE: This feature is only in alpha currently and is not available to the public!)
preview: # optional, default is false

name: Deploy static content to Pages

on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4