-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (54 loc) · 1.3 KB
/
push.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
on:
push:
branches:
- master
- feature/*
- housekeeping/*
- issue/*
- dependabot/**
name: 'Sample Integration NextJS'
jobs:
build:
name: 'Build'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: 'Install'
uses: ./docker/node/
env:
PORSCHE_NPM_REGISTRY_TOKEN: ${{ secrets.PORSCHE_NPM_REGISTRY_TOKEN }}
with:
entrypoint: run-install
- name: 'Unit Test'
uses: ./docker/node/
with:
entrypoint: run-test
- name: 'Build'
uses: ./docker/node/
with:
entrypoint: run-build
- name: 'Store build artifact'
uses: actions/upload-artifact@v4
with:
name: sample-build
path: ./out
deployment:
name: 'Deployment'
needs: [build]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: 'Restore build artifact'
uses: actions/download-artifact@v4
with:
name: sample-build
path: ./out
- name: 'Deploy'
uses: ./docker/node/
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
with:
entrypoint: run-deploy