Skip to content
This repository was archived by the owner on Jun 21, 2026. It is now read-only.

Commit 5e9dcd9

Browse files
committed
feat: github pages deploy
1 parent c5a542d commit 5e9dcd9

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
workflow_dispatch:
7+
8+
# Allow this job to clone the repo and create a page deployment
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout your repository using git
19+
uses: actions/checkout@v3
20+
- name: Install, build, and upload your site
21+
uses: withastro/action@v0
22+
with:
23+
# path: ./website # The root location of your Astro project inside the repository. (optional)
24+
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
25+
package-manager: pnpm # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
26+
27+
deploy:
28+
needs: build
29+
runs-on: ubuntu-latest
30+
environment:
31+
name: github-pages
32+
url: ${{ steps.deployment.outputs.page_url }}
33+
steps:
34+
- name: Deploy to GitHub Pages
35+
id: deployment
36+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)