You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/deploy.yaml
+5-11Lines changed: 5 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,10 @@
1
1
name: Deploy to GitHub Pages
2
2
3
3
on:
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
6
4
push:
7
-
branches: [master]
8
-
# Allows you to run this workflow manually from the Actions tab on GitHub.
5
+
branches: [master] # Or 'main' if that’s your default
9
6
workflow_dispatch:
10
7
11
-
# Allow this job to clone the repo and create a page deployment
12
8
permissions:
13
9
contents: read
14
10
pages: write
@@ -23,15 +19,13 @@ jobs:
23
19
build:
24
20
runs-on: ubuntu-latest
25
21
steps:
26
-
- name: Checkout your repository using git
22
+
- name: Checkout your repository
27
23
uses: actions/checkout@v3
28
24
29
-
- name: Install, build, and upload your site
30
-
uses: withastro/action@v2
25
+
- name: Setup Node.js
26
+
uses: actions/setup-node@v3
31
27
with:
32
-
node-version: 18# The specific version of Node that should be used to build your site. Defaults to 16. (optional)
33
-
# path: . # The root location of your Astro project inside the repository. (optional)
34
-
# package-manager: yarn # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
0 commit comments