-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (57 loc) · 1.39 KB
/
deploy.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
name: Deploy photos
on:
push:
branches:
- master
- LYS-17-aggiungere-github-actions
jobs:
test:
uses: ./.github/workflows/test.yaml
deploy:
if: github.ref_name != 'master'
needs:
- test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
node: [ 22 ]
steps:
- uses: actions/checkout@v4
# todo build steps
# deploy
- name: Pulumi dependencies
working-directory: pulumi
run: npm ci
- uses: pulumi/actions@v6
with:
command: up
stack-name: lysz210/photos/dev
work-dir: pulumi
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
docs:
needs:
- test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
node: [ 22 ]
defaults:
run:
working-directory: ./app
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Generate documentations
run: npm run docs
- name: Upload documentation to artifact
uses: actions/upload-artifact@v4
with:
name: docs
path: app/.reports