Skip to content

change: ci/cd version #14

change: ci/cd version

change: ci/cd version #14

Workflow file for this run

# ワークフローの名前
name: Release-GitHub-Page
# 起動のタイミング
# 今回はmasterブランチへのpush
on:
push:
branches:
- main
# ジョブの定義
jobs:
build:
# 実行するインスタンス
runs-on: ubuntu-latest
# nodeのバージョン一覧
strategy:
matrix:
node-version: ['20.x']
# 各ステップの実行
steps:
# チェックアウト
- uses: actions/checkout@v1
# 使用するnodeのバージョンを指定
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# パッケージのインストールとアプリのビルド
- name: install and build
run: |
npm ci
npm run build
env:
CI: true
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build
force_orphan: true