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.yml
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,17 @@
1
1
name: Deploy to GitHub Pages
2
2
3
-
inputs:
4
-
cv-json:
5
-
description: 'Actual JSON of the CV'
6
-
type: string
7
-
required: true
8
-
9
3
on:
10
4
# Trigger the workflow every time you push to the `main` branch
11
5
# Using a different branch name? Replace `main` with your branch’s name
12
6
push:
13
7
branches: [ main ]
14
8
# Allows you to run this workflow manually from the Actions tab on GitHub.
15
9
workflow_dispatch:
10
+
inputs:
11
+
cv-json:
12
+
description: 'Actual JSON of the CV'
13
+
type: string
14
+
required: true
16
15
17
16
# Allow this job to clone the repo and create a page deployment
18
17
permissions:
@@ -27,13 +26,16 @@ jobs:
27
26
- name: Checkout your repository using git
28
27
uses: actions/checkout@v4
29
28
- name: Write cv.json from input
30
-
run: echo '${{ inputs.cv-json }}' > src/cv.json
29
+
run: |
30
+
cat <<EOF > src/cv.json
31
+
${{ inputs.cv-json }}
32
+
EOF
31
33
- name: Install, build, and upload your site
32
34
uses: withastro/action@v3
33
-
#with:
34
-
#path: . # The root location of your Astro project inside the repository. (optional)
35
-
#node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
36
-
#package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
35
+
with:
36
+
path: . # The root location of your Astro project inside the repository. (optional)
37
+
node-version: 20# The specific version of Node that should be used to build your site. Defaults to 20. (optional)
38
+
package-manager: pnpm@latest # 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