Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/BitMap4/grades_site
Browse files Browse the repository at this point in the history
  • Loading branch information
bitmap4 committed Dec 24, 2024
2 parents 89e55fa + 278fa41 commit 2492acf
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Deploy frontend
on:
push:
branches: ['master']

workflow_dispatch:

# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
Expand All @@ -26,23 +25,23 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Move to frontend
run: cd frontend
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Install dependencies
run: npm ci
working-directory: ./frontend

- name: Build
run: npm run build
working-directory: ./frontend

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

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
path: './frontend/dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 2492acf

Please sign in to comment.