Skip to content

Commit b1eaa94

Browse files
committed
Fix workflow to use master branch and add secret support
1 parent e907e53 commit b1eaa94

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@ name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ master ]
66
workflow_dispatch:
77

88
permissions:
99
contents: read
1010
pages: write
1111
id-token: write
1212

13-
concurrency:
14-
group: "pages"
15-
cancel-in-progress: false
16-
1713
jobs:
18-
build:
14+
build-and-deploy:
1915
runs-on: ubuntu-latest
2016

2117
steps:
@@ -37,22 +33,10 @@ jobs:
3733
VITE_SUPABASE_ANON_KEY: ${{ secrets.VITE_SUPABASE_ANON_KEY }}
3834
run: npm run build
3935

40-
- name: Setup Pages
41-
uses: actions/configure-pages@v4
42-
4336
- name: Upload artifact
4437
uses: actions/upload-pages-artifact@v3
4538
with:
4639
path: ./dist
4740

48-
deploy:
49-
environment:
50-
name: github-pages
51-
url: ${{ steps.deployment.outputs.page_url }}
52-
runs-on: ubuntu-latest
53-
needs: build
54-
55-
steps:
5641
- name: Deploy to GitHub Pages
57-
id: deployment
5842
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)