Skip to content

Merge pull request #24 from komura-c/fix/actions_and_style #51

Merge pull request #24 from komura-c/fix/actions_and_style

Merge pull request #24 from komura-c/fix/actions_and_style #51

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "18"
- 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
env:
PUBLIC_GA_ID: ${{ secrets.PUBLIC_GA_ID }}
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v2
with:
path: "${{ inputs.path }}/dist/"
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1