[READ-ONLY] Mirror of https://github.com/flo-bit/svelte-github-corner. flo-bit.dev/svelte-github-corner/
0

Configure Feed

Select the types of activity you want to include in your feed.

svelte-github-corner / .github / workflows / deploy_gh_pages.yml
1.4 kB 64 lines
1name: Deploy to GitHub Pages and Publish NPM Package 2 3on: 4 push: 5 branches: 6 - main 7 8jobs: 9 build_site: 10 runs-on: ubuntu-latest 11 steps: 12 - name: Checkout 13 uses: actions/checkout@v3 14 15 - name: Install Bun 16 uses: oven-sh/setup-bun@v1 17 with: 18 bun-version: latest 19 cache: true 20 21 - name: Install dependencies 22 run: bun install 23 24 - name: Build 25 env: 26 BASE_PATH: '/${{ github.event.repository.name }}' 27 run: bun run build 28 29 - name: Upload Artifacts 30 uses: actions/upload-pages-artifact@v2 31 with: 32 # This should match the `pages` option in your adapter-static options 33 path: 'build/' 34 35 - name: Debug npm auth 36 env: 37 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 38 run: | 39 echo "Auth token length: ${#NODE_AUTH_TOKEN}" 40 echo "Registry: $(npm get registry)" 41 42 - name: Publish to NPM 43 env: 44 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 45 run: | 46 npm install 47 npm publish --access public 48 49 deploy: 50 needs: build_site 51 runs-on: ubuntu-latest 52 53 permissions: 54 pages: write 55 id-token: write 56 57 environment: 58 name: github-pages 59 url: ${{ steps.deployment.outputs.page_url }} 60 61 steps: 62 - name: Deploy 63 id: deployment 64 uses: actions/deploy-pages@v2