Skip to content

check ci status(deps): bump actions/dependency-review-action from 3 t… #193

check ci status(deps): bump actions/dependency-review-action from 3 t…

check ci status(deps): bump actions/dependency-review-action from 3 t… #193

Workflow file for this run

name: Deploy pages
on:
workflow_dispatch:
inputs:
confirm:
required: true
description: "本当に実行しますか?実行する場合「run」と書いてください。"
environment:
required: true
description: "反映対象の環境"
type: environment
push:
branches:
- main
jobs:
Build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20 ]
steps:
- name: Confirm Check
if: github.event_name == 'workflow_dispatch' && github.event.inputs.confirm != 'run'
run: echo "Invalid input" && exit 1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Clean Up
run: rm -r src/ts
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'src/'
Deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs:
- Build
permissions:
pages: write
id-token: write
steps:
- id: deployment
uses: actions/deploy-pages@v4