Skip to content

Commit 9890e68

Browse files
authored
Update static.yml
1 parent e9c7eea commit 9890e68

1 file changed

Lines changed: 18 additions & 11 deletions

File tree

.github/workflows/static.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
1-
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
1+
# Deploy static documentation (index.html) to GitHub Pages
2+
name: Deploy Docs to Pages
33

44
on:
5-
# Runs on pushes targeting the default branch
65
push:
76
branches: ["main"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
107
workflow_dispatch:
118

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
139
permissions:
1410
contents: read
1511
pages: write
1612
id-token: write
1713

14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: true
17+
1818
jobs:
1919
deploy:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v4
23-
- uses: actions/configure-pages@v4
24-
- uses: actions/upload-pages-artifact@v2
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Configure GitHub Pages
26+
uses: actions/configure-pages@v4
27+
28+
- name: Upload site artefact
29+
uses: actions/upload-pages-artifact@v3
2530
with:
26-
path: "." # index.html is in root
27-
- uses: actions/deploy-pages@v2
31+
path: "." # repo root contains index.html
32+
33+
- name: Deploy to Pages
34+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)