Skip to content
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

Deploy main web app #211

Merged
merged 8 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/deploy-gg-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
paths:
- 'gg-mono/apps/react-frontend/**'
jobs:
deploy:
runs-on: ubuntu-latest
env:
TURBO_URL: ${{ secrets.TURBO_URL }}
TURBO_CODE: ${{ secrets.TURBO_CODE }}
defaults:
run:
working-directory: gg-mono
permissions:
contents: read
deployments: write
name: Deploy
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
with:
version: 8.14.1
- name: install dependencies
run: pnpm install --frozen-lockfile
- name: build
run: cd apps/react-frontend && pnpm build:ci
- name: deploy dashboard
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: gg-app
directory: gg-mono/apps/react-frontend/dist # e.g. 'dist'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion gg-mono/apps/react-frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const App: React.FC = () => {

return (
<>
<h1>Ishtar For Web</h1>
<h1>Guardian Ghost for web</h1>
<h2>Auth State: {authState}</h2>

<div>
Expand Down