Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuu committed Jun 19, 2024
1 parent acd8956 commit a203123
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ concurrency:
cancel-in-progress: false

jobs:
build:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -34,9 +34,6 @@ jobs:
with:
node-version: 20

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Install dependencies
run: npm install

Expand All @@ -45,19 +42,7 @@ jobs:
npm run build
ls
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: Deploy Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
path: ./dist

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
folder: dist

0 comments on commit a203123

Please sign in to comment.