-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (50 loc) · 1.81 KB
/
deploy-v3.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
name: build & deploy esds 3.0
on:
push:
branches:
- esds-3.0-vue3-primevue
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout Repo 🗃️
uses: actions/checkout@v4
with:
ref: esds-3.0-vue3-primevue
- name: Log into ES_DS_DEV AWS account 🔑
id: creds
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::453321834875:role/github-write-to-s3
output-credentials: true
- name: Log into CodeArtifact 🗝️
shell: bash
run: |
aws codeartifact login --tool npm --domain energysage --domain-owner 659694780082 --repository cloud-engineering
- name: Get nodenv version 🔌
id: nodenv
shell: bash
run: echo "node-version=$(cat .node-version)" >> $GITHUB_OUTPUT
- name: Setup node env 🏗
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nodenv.outputs.node-version }}'
check-latest: true
- name: Install dependencies 👨🏻💻
run: |
make install
make symlink
- name: Build ES-DS Version 3 🛠️
working-directory: ./es-ds-docs
shell: bash
run: |
npm run generate
- name: Deploy to S3 📍
working-directory: ./es-ds-docs
shell: bash
run: |
aws s3 cp --recursive .output/public/ s3://es-ds-version-2