Skip to content

Commit

Permalink
Test deployment witout workflow file (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut authored Aug 25, 2024
1 parent 33ced02 commit 717b7b4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/deploy-cf-pages.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: UI deployment
on:
push:
branches: ['main']
# pull_request:
# branches: ['main']
# name: UI deployment
# on:
# push:
# branches: ['main']
# # pull_request:
# # branches: ['main']

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGE_GITHUB_API_TOKEN }}
accountId: ${{secrets.CLOUDFLARE_ACCOUNT_ID}}
projectName: delegit
directory: ./build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# jobs:
# deploy:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# deployments: write
# steps:
# - uses: pnpm/action-setup@v4
# with:
# version: 9
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 21
# cache: 'pnpm'
# cache-dependency-path: 'pnpm-lock.yaml'
# - run: pnpm install --frozen-lockfile
# - run: pnpm build
# - name: Publish to Cloudflare Pages
# uses: cloudflare/pages-action@v1
# with:
# apiToken: ${{ secrets.CLOUDFLARE_PAGE_GITHUB_API_TOKEN }}
# accountId: ${{secrets.CLOUDFLARE_ACCOUNT_ID}}
# projectName: delegit
# directory: ./build
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion src/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Content = () => {
isLight && lightClientLoaded && toast.success('Light client: Synced')
}, [isLight, lightClientLoaded])

console.log('==> Delegit FTW')
console.log('==> Delegit FTW!!!')
return (
<>
<Routes>
Expand Down

0 comments on commit 717b7b4

Please sign in to comment.