This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
Ping #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample workflow for building and deploying a Next.js site to GitHub Pages | |
# | |
# To get started with Next.js see: https://nextjs.org/docs/getting-started | |
# | |
name: CI build | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: ["main"] | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
# Build job | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "14" | |
- name: lint | |
run: yarn lint | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: build | |
run: yarn build | |
- name: deploy | |
run: yarn deploy | |
env: | |
DEPLOY_API_KEY: ${{ secrets.DEPLOY_API_KEY }} | |
DEPLOY_ENV: production |