-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow to push to cloudflare pages (#45)
Co-authored-by: Nikos Kontakis <[email protected]>
- Loading branch information
Showing
4 changed files
with
41 additions
and
47 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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 }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
{ | ||
"name": "dashboard", | ||
"name": "delegit", | ||
"private": true, | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"type": "module", | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"postinstall": "papi", | ||
"dev": "vite", | ||
"build": "tsc -b && vite build", | ||
"deploy": "gh-pages -d build", | ||
"build:pages": "tsc && vite build --base '/dashboard/'", | ||
"deploy:pages": "pnpm run build:pages && gh-pages -d build", | ||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", | ||
"preview": "vite preview", | ||
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css}\"" | ||
|