File tree 1 file changed +2
-14
lines changed
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 1
- # Simple workflow for deploying static content to GitHub Pages
2
1
name : Deploy static content to Pages
3
2
4
3
on :
5
- # Runs on pushes targeting the default branch
6
4
push :
7
5
branches : ['main']
8
-
9
- # Allows you to run this workflow manually from the Actions tab
10
6
workflow_dispatch :
11
7
12
- # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
13
8
permissions :
14
9
contents : read
15
10
pages : write
16
11
id-token : write
17
12
18
- # Allow one concurrent deployment
19
13
concurrency :
20
14
group : ' pages'
21
15
cancel-in-progress : true
22
16
23
17
jobs :
24
- # Single deploy job since we're just deploying
25
18
deploy :
26
19
environment :
27
20
name : github-pages
@@ -30,10 +23,10 @@ jobs:
30
23
steps :
31
24
- name : Checkout
32
25
uses : actions/checkout@v4
33
- - name : Set up Node
26
+ - name : Set up Node.js
34
27
uses : actions/setup-node@v3
35
28
with :
36
- node-version : 18
29
+ node-version : 20
37
30
cache : ' npm'
38
31
- name : Install dependencies
39
32
run : npm install
44
37
- name : Upload artifact
45
38
uses : actions/upload-pages-artifact@v2
46
39
with :
47
- # Upload dist repository
48
40
path : ' ./dist'
49
41
- name : Deploy to GitHub Pages
50
42
id : deployment
51
43
uses : actions/deploy-pages@v2
52
-
53
- - name : Configurar entorno
54
- run : |
55
- echo "VITE_GOOGLE_MAPS_API_KEY=${{ secrets.VITE_GOOGLE_MAPS_API_KEY }}" >> .env.production
You can’t perform that action at this time.
0 commit comments