Skip to content

Commit 0069f30

Browse files
committed
Update GitHub Actions workflow to use official GitHub Pages template
1 parent f3e2ccd commit 0069f30

1 file changed

Lines changed: 18 additions & 19 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,43 @@
1-
name: Deploy to GitHub Pages
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
23

34
on:
5+
# Runs on pushes targeting the default branch
46
push:
5-
branches: [ main ]
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
610
workflow_dispatch:
711

12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
813
permissions:
914
contents: read
1015
pages: write
1116
id-token: write
1217

18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1320
concurrency:
1421
group: "pages"
1522
cancel-in-progress: false
1623

1724
jobs:
18-
build:
25+
# Single deploy job since we're just deploying
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
1930
runs-on: ubuntu-latest
2031
steps:
2132
- name: Checkout
2233
uses: actions/checkout@v4
2334
- name: Setup Pages
2435
uses: actions/configure-pages@v4
25-
- name: Build with Jekyll
26-
uses: actions/jekyll-build-pages@v1
27-
with:
28-
source: ./
29-
destination: ./_site
3036
- name: Upload artifact
31-
uses: actions/upload-pages-artifact@v2
37+
uses: actions/upload-pages-artifact@v1
3238
with:
33-
path: ./_site
34-
35-
deploy:
36-
needs: build
37-
runs-on: ubuntu-latest
38-
environment:
39-
name: github-pages
40-
url: ${{ steps.deployment.outputs.page_url }}
41-
steps:
39+
# Upload entire repository
40+
path: '.'
4241
- name: Deploy to GitHub Pages
4342
id: deployment
44-
uses: actions/deploy-pages@v3
43+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)