Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gloria Giannascoli committed Jul 29, 2024
1 parent b221f47 commit e2962f7
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [main]

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

steps:
Expand All @@ -27,15 +27,27 @@ jobs:

- run: npm install

- run: npm ci

- run: npm run build-ci
env:
VITE_PUBLIC_PATH: '/online-menu'
CI: false

- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_dir: ./dist
deploy:
runs-on: ubuntu-latest
# Add a dependency to the build job
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

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

0 comments on commit e2962f7

Please sign in to comment.