File tree Expand file tree Collapse file tree 1 file changed +14
-30
lines changed
Expand file tree Collapse file tree 1 file changed +14
-30
lines changed Original file line number Diff line number Diff line change 1- # .github/workflows/deploy.yml
21name : Deploy to GitHub Pages
32
43on :
4+ # Trigger the workflow every time you push to the `main` branch
5+ # Using a different branch name? Replace `main` with your branch’s name
56 push :
6- branches : [ main ]
7+ branches : [main]
8+ # Allows you to run this workflow manually from the Actions tab on GitHub.
79 workflow_dispatch :
810
11+ # Allow this job to clone the repo and create a page deployment
912permissions :
1013 contents : read
1114 pages : write
1215 id-token : write
1316
14- concurrency :
15- group : " pages"
16- cancel-in-progress : false
17-
1817jobs :
1918 build :
2019 runs-on : ubuntu-latest
2120 steps :
22- - name : Checkout
21+ - name : Checkout your repository using git
2322 uses : actions/checkout@v4
24-
25- - name : Setup Node
26- uses : actions/setup-node@v4
27- with :
28- node-version : ' 18'
29- cache : ' npm'
30-
31- - name : Setup Pages
32- uses : actions/configure-pages@v4
33-
34- - name : Install dependencies
35- run : npm ci
36-
37- - name : Build with Astro
38- run : |
39- npm run build
40-
41- - name : Upload artifact
42- uses : actions/upload-pages-artifact@v2
23+ - name : Install, build, and upload your site
24+ uses : withastro/action@v3
4325 with :
44- path : ./dist
26+ path : .
27+ node-version : 20
28+ package-manager : npm
4529
4630 deploy :
31+ needs : build
32+ runs-on : ubuntu-latest
4733 environment :
4834 name : github-pages
4935 url : ${{ steps.deployment.outputs.page_url }}
50- runs-on : ubuntu-latest
51- needs : build
5236 steps :
5337 - name : Deploy to GitHub Pages
5438 id : deployment
55- uses : actions/deploy-pages@v3
39+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments