Skip to content

Update index.html

Update index.html #11

Workflow file for this run

name: github pages
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
actions: write
checks: write
contents: write
deployments: write
discussions: write
issues: write
pages: read
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout source code.
uses: actions/checkout@v2
with:
lfs: true
token: ${{ secrets.ACCESS_TOKEN || github.token }}
- name: Install dependencies
run: npm install
- name: Setting .env
run: |
echo "REACT_APP_API_BASE_URL=${{ secrets.REACT_APP_API_BASE_URL }}" >> .env
echo "REACT_APP_KAKAO_JAVASCRIPT_KEY=${{ secrets.REACT_APP_KAKAO_JAVASCRIPT_KEY }}" >> .env
echo "REACT_APP_KAKAO_REST_KEY=${{ secrets.REACT_APP_KAKAO_REST_KEY }}" >> .env
cat .env
- name: Build
run: npm run build
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build