From aaec0143978a157e824ce7c34bc41eeea9f98683 Mon Sep 17 00:00:00 2001 From: Mario Tarosso Date: Fri, 27 Sep 2024 13:36:35 +0100 Subject: [PATCH] cache bug pages --- .github/workflows/nuxtjs.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/nuxtjs.yml b/.github/workflows/nuxtjs.yml index a5b7e73..789ab0e 100644 --- a/.github/workflows/nuxtjs.yml +++ b/.github/workflows/nuxtjs.yml @@ -1,4 +1,3 @@ -# https://github.com/actions/deploy-pages#usage name: Deploy to GitHub Pages on: workflow_dispatch: @@ -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