Skip to content

Commit

Permalink
Third-Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
7iw8n authored Nov 21, 2023
1 parent 267cc9d commit ee8dcca
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,34 @@ name: Auto Deploy after push

on:
push:
branches: ["main"]
branches:
- main

jobs:
build-and-deploy:
build:
runs-on: ubuntu-18.04
steps:
- name: git checkout
uses: actions/checkout@v3
- name: Checkout source code.
uses: actions/checkout@main

- name: npm install
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install Dependencies
run: npm install

- name: npm build
- name: Build
run: npm run build
env:
CI: false

- name: deploy s3
- name: Deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down

0 comments on commit ee8dcca

Please sign in to comment.