generated from ubiquity/ts-template
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: rendering #15
Merged
Merged
fix: rendering #15
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
0864bfe
fix: supabase key rename
0x4007 0b8f1e6
fix: supabase key rename
0x4007 a41a4d8
feat: make the rendering more flexible for inconsistent urls being po…
0x4007 ac5ca03
fix: pass in env vars
0x4007 60409cb
chore: test cd for secrets
0x4007 c925603
fix: pass in secrets to build
0x4007 2bae185
chore: bump ci
0x4007 547944c
fix: env vars
0x4007 1668a17
fix: matching sha
0x4007 b8c5431
chore: test why secrets are not being passed in
0x4007 d6c2828
chore: test why secrets are not being passed in
0x4007 f43ee13
chore: test why secrets are not being passed in
0x4007 bb0e66c
chore: test why secrets are not being passed in
0x4007 886543d
chore: try vars
0x4007 68aa965
chore: try vars
0x4007 4a39b14
chore: hardcode supabase info in deploy
0x4007 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
SUPABASE_URL= | ||
SUPABASE_KEY= | ||
SUPABASE_ANON_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,42 @@ | ||
name: Build | ||
name: Build & Deploy | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
# with: | ||
# submodules: "recursive" # Ensures submodules are checked out | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20.10.0" | ||
- name: Install dependencies | ||
run: yarn install | ||
node-version: 20.10.0 | ||
|
||
- name: Build | ||
run: yarn build | ||
env: | ||
SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | ||
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }} | ||
run: | | ||
yarn | ||
yarn build | ||
env: # Set environment variables for the build | ||
SUPABASE_URL: "https://wfzpewmlyiozupulbuur.supabase.co" | ||
SUPABASE_ANON_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6IndmenBld21seWlvenVwdWxidXVyIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTU2NzQzMzksImV4cCI6MjAxMTI1MDMzOX0.SKIL3Q0NOBaMehH0ekFspwgcu3afp3Dl9EDzPqs1nKs" | ||
|
||
- name: Deploy to Cloudflare | ||
uses: ubiquity/cloudflare-deploy-action@main | ||
with: | ||
repository: ${{ github.repository }} | ||
production_branch: ${{ github.event.repository.default_branch }} | ||
output_directory: "static" | ||
current_branch: ${{ github.ref_name }} | ||
pull_request_number: ${{ github.event.pull_request.number }} | ||
commit_sha: ${{ github.event.pull_request.head.sha }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't figure out how to pass in build secrets to outside forks.