Skip to content

Commit

Permalink
💚 github actions fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyFangs committed Oct 26, 2024
1 parent d20e5d0 commit d886831
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 50 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/build.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/check.yml

This file was deleted.

36 changes: 31 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,46 @@ on:
branches: 'main'

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Build
run: npm run build
build:
needs: check
runs-on: ubuntu-latest
steps:
- name: Build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
run: npm run build
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
path: 'build/'
deploy:
needs: build
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Build
uses: ./.github/workflows/build.yml
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit d886831

Please sign in to comment.