Skip to content

Commit fa13084

Browse files
Add GitHub Actions workflow for deploying to GitHub Pages and create .nojekyll file
- Introduced a GitHub Actions workflow in `pages.yml` to automate deployment of the static site to GitHub Pages on pushes to the main or master branches. - Added a `.nojekyll` file to prevent Jekyll processing on the GitHub Pages site.
1 parent d29c2b4 commit fa13084

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Publishes the static site to GitHub Pages on push to main
2+
name: Deploy GitHub Pages
3+
4+
on:
5+
push:
6+
branches: ["main", "master"]
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
deploy:
20+
runs-on: ubuntu-latest
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: actions/configure-pages@v4
27+
- uses: actions/upload-pages-artifact@v3
28+
with:
29+
path: "."
30+
- uses: actions/deploy-pages@v4
31+
id: deployment

.nojekyll

Whitespace-only changes.

0 commit comments

Comments
 (0)