-
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.
Test deployment witout workflow file (#50)
- Loading branch information
Showing
2 changed files
with
33 additions
and
33 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
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 }} |
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