forked from aave/interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
50 lines (50 loc) · 1.34 KB
/
action.yml
File metadata and controls
50 lines (50 loc) · 1.34 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
name: Build app and static
description: Build nextjs app and export static files
inputs:
BUILD_ARTIFACT_NAME:
description: optional name of the static build artifact
required: false
default: out
PR_INFO:
description: should this artifact be uploaded
required: false
default: 'true'
NEXTJS_BUILD:
description: should this artifact be uploaded
required: false
default: 'true'
runs:
using: 'composite'
steps:
- name: Save PR number
if: github.event.number && inputs.PR_INFO == 'true'
shell: sh
run: |
mkdir -p ./__pr
echo ${{ github.event.number }} > ./__pr/NUM
- name: store PR info
if: github.event.number && inputs.PR_INFO == 'true'
uses: actions/upload-artifact@v4
with:
name: pr
path: __pr/
retention-days: 10
overwrite: true
- name: store static build
uses: actions/upload-artifact@v4
with:
name: '${{ inputs.BUILD_ARTIFACT_NAME }}'
path: out/
retention-days: 10
overwrite: true
- name: store nextjs build
if: inputs.NEXTJS_BUILD == 'true'
uses: actions/upload-artifact@v4
with:
name: 'nextjs_${{ github.job }}'
path: |
.next
!.next/cache
retention-days: 10
overwrite: true
include-hidden-files: true