Skip to content

Commit

Permalink
Action to deploy dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw committed Dec 26, 2023
1 parent 6109be1 commit e574a35
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy-dashboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:
paths:
- 'apps/dashboard/**'
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
with:
version: 8.12.1
- name: install dependencies
run: pnpm install --frozen-lockfile
- name: build
run: cd apps/dashboard && pnpm build
- name: deploy dashboard
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: gg-dashboard
directory: apps/dashboard/dist # e.g. 'dist'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: build
run: pnpm build
- name: publish docs
uses: cloudflare/pages-action@1
uses: cloudflare/pages-action@v1.5.0
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function App() {
<img src={solidLogo} class="logo solid" alt="Solid logo" />
</a>
</div>
<h1>Placeholder for dashboard</h1>
<h1>Placeholder for dashboard!</h1>
<div class="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count()}
Expand Down

0 comments on commit e574a35

Please sign in to comment.