-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.29 KB
/
Copy pathnext-build.yaml
File metadata and controls
54 lines (47 loc) · 1.29 KB
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
# To better understand this file read this:
# https://docs.ionos.space/docs/github-actions-customization/
name: "Deploy Now: Execute Build"
on:
workflow_call:
inputs:
site-url:
required: true
type: string
branch-id:
required: true
type: string
env:
DEPLOYMENT_FOLDER: out
jobs:
# Please do not rename this job
build-project:
name: build next
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: v16.x
- name: Build Node assets
env:
CI: true
SITE_URL: ${{ inputs.site-url }}
run: |
npm ci
npm run build
# Please do not touch the following action
- name: Store deployment content
uses: ionos-deploy-now/artifact-action@v1
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: 5a58e1b7-c93c-4dda-8e5c-f9fcf62d9f9a
branch-id: ${{ inputs.branch-id }}
version: ${{ github.sha }}
folder: ${{ env.DEPLOYMENT_FOLDER }}
config-file: .deploy-now/next/config.yaml
action: upload