-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.74 KB
/
deploy-now.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# To better understand this file read this:
# https://docs.ionos.space/docs/github-actions-customization/
name: Deploy Now
on:
- push
- workflow_dispatch
jobs:
deploy-now:
runs-on: ubuntu-latest
steps:
# - name: Fetch project data
# uses: ionos-deploy-now/retrieve-project-info-action@v1
# id: project
# with:
# api-key: ${{ secrets.IONOS_API_KEY }}
# project: ${{ secrets.IONOS_PROJECT_ID }}
# service-host: api-eu.ionos.space
- name: checkout
# if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup Node
# if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
uses: actions/setup-node@v3
with:
node-version: v18.13.0
- name: Build Node assets
# if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
# env:
# CI: true
# SITE_URL: ${{ steps.project.outputs.site-url }}
run: |
npm ci
npm run build
- name: Deploy to Github-pages
# if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
uses: JamesIves/[email protected]
with:
branch: master
folder: docs
# - name: Deploy to IONOS
# if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
# uses: ionos-deploy-now/deploy-to-ionos-action@v1
# with:
# project: ${{ secrets.IONOS_PROJECT_ID }}
# branch-id: ${{ steps.project.outputs.branch-id }}
# service-host: api-eu.ionos.space
# api-key: ${{ secrets.IONOS_API_KEY }}
# dist-folder: dist