Skip to content

チケット購入リンク削除とYoutubeアカウント追加 #173

チケット購入リンク削除とYoutubeアカウント追加

チケット購入リンク削除とYoutubeアカウント追加 #173

Workflow file for this run

name: deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
permissions:
contents: read
id-token: write
pages: write
jobs:
build:
runs-on: ubuntu-latest
env:
REPO_NAME: ${{ github.event.repository.name }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore node_modules cache
uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/node_modules
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
- name: Install dependencies
run: yarn install --frozen-lockfile --prefer-offline
- name: Lint check
run: yarn lint
- name: Build
run: yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: build
deploy:
if: github.ref_name == 'main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2