simple atproto oauth for static svelte apps
flo-bit.dev/svelte-atproto-client-oauth/
1name: Deploy to GitHub Pages
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@v4
14
15 - uses: pnpm/action-setup@v4
16 with:
17 version: 10.24.0
18
19 - name: Setup Node.js environment
20 uses: actions/setup-node@v4
21 with:
22 node-version: 20
23 cache: 'pnpm'
24
25 - name: Install dependencies
26 run: pnpm install
27
28 - name: Build
29 run: pnpm build
30 env:
31 BASE_PATH: '/${{ github.event.repository.name }}'
32
33 - name: Upload Artifacts
34 uses: actions/upload-pages-artifact@v3
35 with:
36 path: 'build/'
37
38 deploy:
39 needs: build_site
40 runs-on: ubuntu-latest
41
42 permissions:
43 pages: write
44 id-token: write
45
46 environment:
47 name: github-pages
48 url: ${{ steps.deployment.outputs.page_url }}
49
50 steps:
51 - name: Deploy
52 id: deployment
53 uses: actions/deploy-pages@v4