-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 983 Bytes
/
main.yml
File metadata and controls
32 lines (28 loc) · 983 Bytes
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
# This is a basic workflow to help you get started with Actions
name: CI/CD
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
jobs:
primary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: install dependencies
run: npm install
- name: build
run: npm run build
env:
CI: false
PUBLIC_URL: http://challengetracker.cz.s3-website.eu-central-1.amazonaws.com
# should save this keys in github, settings of the project, secrets :
# AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
- name: aws deploy
run: AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} npm run deploy