forked from fmeringdal/nettu-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 903 Bytes
/
server.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
name: server
on:
push:
paths:
- "server/**"
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
- run: |
cd server
npm install
tsc
cp src/docs/swagger.yaml dist/docs/swagger.yaml
zip -r server-ubuntu-20.4.zip .
- name: Configure AWS credentials from Test account
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: eu-west-1
- name: Upload artifacts
run: |
cd server
aws s3 cp server-ubuntu-20.4.zip s3://nettu-meet-code-artifacts/server-ubuntu-20.4.zip --acl public-read