Skip to content

Commit

Permalink
workflow追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenshin0011 committed Jun 14, 2024
1 parent 512f5b2 commit 3598e11
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- master

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 'latest'

- name: Install dependencies
run: |
cd front
npm install
- name: Build project
run: |
cd front
npm run build
- name: Deploy to GitHub Pages
run: |
cd front
npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3598e11

Please sign in to comment.