Skip to content

[Edit] show all boards and create board #10

[Edit] show all boards and create board

[Edit] show all boards and create board #10

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: npm install # or yarn install
- name: Build production-ready SPA
run: npm run build # or yarn build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Deploy to S3
env:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
aws s3 rm s3://dearmydiary.com --recursive
aws s3 cp --recursive --region ap-northeast-2 ./out s3://dearmydiary.com
- name: Clear Cache to Cloudfront
env:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: aws cloudfront create-invalidation --distribution-id EU0XEQZ5TATN6 --paths "/*"