Kaynağa Gözat

different approach again

Aneurin Barker Snook 1 yıl önce
ebeveyn
işleme
6f9d8a459d
1 değiştirilmiş dosya ile 3 ekleme ve 22 silme
  1. 3 22
      .github/workflows/update-gh-pages.yml

+ 3 - 22
.github/workflows/update-gh-pages.yml

@@ -21,6 +21,9 @@ jobs:
       - name: Checkout repository
         uses: actions/checkout@v4
 
+      - name: Set auth token
+        run: echo '//npm.pkg.github.com/:_authToken=${{ secrets.GH_PAT }}' >> .npmrc
+
       - name: Install dependencies
         run: npm ci
 
@@ -29,25 +32,3 @@ jobs:
 
       - name: Publish to gh-pages
         run: npm run publish
-
-      - name: Upload artifact
-        uses: actions/upload-pages-artifact@v3
-        with:
-          name: github-pages
-          path: dist/
-          retention-days: 3
-
-  # https://github.com/actions/deploy-pages?tab=readme-ov-file#usage
-  deploy:
-    needs: build
-    permissions:
-      pages: write
-      id-token: write
-    environment:
-      name: github-pages
-      url: ${{ steps.deployment.outputs.page_url }}
-    runs-on: ubuntu-latest
-    steps:
-      - name: Deploy to GitHub Pages
-        id: deployment
-        uses: actions/deploy-pages@v4