-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (66 loc) · 1.69 KB
/
cd_next.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: CD Develop
on:
pull_request:
branches:
- next
types:
- closed
permissions:
packages: write
contents: write
issues: write
id-token: write
actions: read
jobs:
print_debug:
runs-on: ubuntu-latest
steps:
- name: Dump Inputs
env:
JSON_INPUTS: ${{ toJson(inputs) }}
run: echo "$JSON_INPUTS"
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
release:
name: Create a New Release
runs-on: ubuntu-latest
steps:
- name: Make Release
id: release
uses: pagopa/github-actions-template/node-release@4a4c25ce28feeec9e619b3132b5327f52023d441 # v1.14.2
with:
semver: buildNumber
github_token: ${{ secrets.BOT_TOKEN_GITHUB }}
skip_ci: false
prerelease: true
only_tag: true
deploy:
needs:
- release
name: Deploy on CDN
uses: ./.github/workflows/deploy_on_cdn.yml
with:
environment: 'dev'
secrets: inherit