-
Notifications
You must be signed in to change notification settings - Fork 50
35 lines (34 loc) · 1.25 KB
/
deploy.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
name: Build and Deploy ScratchJr Website
on:
push:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: ${{ github.ref == 'refs/heads/master' && 'production' || 'staging' }}
steps:
- uses: actions/checkout@v4
- run: ${{ github.ref == 'refs/heads/master' && 'production' || 'staging' }}
# - name: Use Node 17x
# uses: actions/setup-node@v3
# with:
# node-version: '17.x'
# - name: Install dependencies
# run: npm install --legacy-peer-deps
# - name: Lint Site Code
# run: npm run test
# - name: Build Site
# run: npm run build
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# role-to-assume: ${{ secrets.AWS_OIDC_ROLE }}
# role-session-name: GitHub-Action-Role
# aws-region: ${{ vars.AWS_REGION }}
# # - name: Send Notification
# # uses: voxmedia/github-action-slack-notify-build@v1
# # with:
# # channel: scratchjr-web-notifications
# # status: STARTED
# # color: good
# # env:
# # SLACK_BOT_TOKEN: ${{secrets.SLACK_ACCESS_TOKEN}}