Skip to content

Commit

Permalink
cache bug pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mariojgt committed Sep 27, 2024
1 parent e388054 commit aaec014
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/nuxtjs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# https://github.com/actions/deploy-pages#usage
name: Deploy to GitHub Pages
on:
workflow_dispatch:
Expand All @@ -14,26 +13,22 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "20"
# Pick your own package manager and build script
- run: npm install -g npm@latest
- run: rm -rf node_modules package-lock.json
- run: npm install
- run: npx nuxt build --preset github_pages
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./.output/public
# Deployment job
deploy:
# 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
pages: write
id-token: write
environment:
name: github_pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
Expand Down

0 comments on commit aaec014

Please sign in to comment.