Skip to content

Update static.yml

Update static.yml #215

Workflow file for this run

# Simple workflow for deploying static content to GitHub Pages
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 repository
uses: actions/checkout@v4 # Latest version
- name: Setup GitHub Pages
uses: actions/configure-pages@v4 # Latest version
- name: Upload artifact using actions/upload-artifact@v4
uses: actions/upload-artifact@v4
with:
name: github-pages
path: '.' # Uploads the entire repo (or change to your build output)
retention-days: 1
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # Latest version