File tree 1 file changed +51
-0
lines changed
1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ # To better understand this file read this:
2
+ # https://docs.ionos.space/docs/github-actions-customization/
3
+
4
+ name : Deploy Now
5
+
6
+ on :
7
+ - push
8
+ - workflow_dispatch
9
+
10
+ jobs :
11
+ deploy-now :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Fetch project data
15
+ uses : ionos-deploy-now/retrieve-project-info-action@v1
16
+ id : project
17
+ with :
18
+ api-key : ${{ secrets.IONOS_API_KEY }}
19
+ project : ${{ secrets.IONOS_PROJECT_ID }}
20
+ service-host : api-eu.ionos.space
21
+
22
+ - name : checkout
23
+ if : ${{ steps.project.outputs.deployment-enabled == 'true' }}
24
+ uses : actions/checkout@v2
25
+ with :
26
+ submodules : ' recursive'
27
+
28
+ - name : Setup Node
29
+ if : ${{ steps.project.outputs.deployment-enabled == 'true' }}
30
+ uses : actions/setup-node@v1
31
+ with :
32
+ node-version : v16.x
33
+
34
+ - name : Build Node assets
35
+ if : ${{ steps.project.outputs.deployment-enabled == 'true' }}
36
+ env :
37
+ CI : true
38
+ SITE_URL : ${{ steps.project.outputs.site-url }}
39
+ run : |
40
+ npm ci
41
+ npm run build
42
+
43
+ - name : Deploy to IONOS
44
+ if : ${{ steps.project.outputs.deployment-enabled == 'true' }}
45
+ uses : ionos-deploy-now/deploy-to-ionos-action@v1
46
+ with :
47
+ project : ${{ secrets.IONOS_PROJECT_ID }}
48
+ branch-id : ${{ steps.project.outputs.branch-id }}
49
+ service-host : api-eu.ionos.space
50
+ api-key : ${{ secrets.IONOS_API_KEY }}
51
+ dist-folder : public
You can’t perform that action at this time.
0 commit comments