[READ-ONLY] Mirror of https://github.com/flo-bit/svelte-swiper-cards. tinder like swipeable cards component for svelte
flo-bit.dev/svelte-swiper-cards/
javascript
svelte
sveltekit
swipeable
tinder-ui
typescript
1.0 kB
51 lines
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@v3
14
15 - name: Install Node.js
16 uses: actions/setup-node@v3
17 with:
18 node-version: 18
19 cache: npm
20
21 - name: Install dependencies
22 run: npm install
23
24 - name: build
25 env:
26 BASE_PATH: '/${{ github.event.repository.name }}'
27 run: |
28 npm run build
29
30 - name: Upload Artifacts
31 uses: actions/upload-pages-artifact@v2
32 with:
33 # this should match the `pages` option in your adapter-static options
34 path: 'build/'
35
36 deploy:
37 needs: build_site
38 runs-on: ubuntu-latest
39
40 permissions:
41 pages: write
42 id-token: write
43
44 environment:
45 name: github-pages
46 url: ${{ steps.deployment.outputs.page_url }}
47
48 steps:
49 - name: Deploy
50 id: deployment
51 uses: actions/deploy-pages@v2