Skip to content

Commit

Permalink
fix: improve deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsc0301 committed Jun 30, 2023
1 parent 56437c4 commit 78cb6b8
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This is a basic workflow to help you get started with Actions

name: Build and Deploy

# Controls when the workflow will run
Expand All @@ -12,16 +10,19 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
checkout:
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v3

build:
needs: checkout
runs-on: ubuntu-latest

steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand All @@ -30,7 +31,12 @@ jobs:
# Runs a single command using the runners shell
- name: Build the project
run: npm install && npm run build

deploy:
needs: build
runs-on: ubuntu-latest

steps:
- name: Deploy to GH Pages 🚀
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 78cb6b8

Please sign in to comment.