-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to Deno. At least, version that works!
- Loading branch information
1 parent
654a130
commit dc5e915
Showing
4 changed files
with
69 additions
and
72 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,56 +1,56 @@ | ||
name: API | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ Release ] | ||
types: [ completed ] | ||
|
||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
- run: pnpm install | ||
|
||
- name: Build server code | ||
run: pnpm api:build | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: build | ||
path: | | ||
api/.output | ||
api/wrangler.toml | ||
retention-days: 1 | ||
include-hidden-files: true | ||
|
||
deploy: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
environment: | ||
name: cloudflare | ||
url: https://sert.somespecialone.workers.dev | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: build | ||
path: .output | ||
|
||
- name: Move deploy configuration | ||
run: mv .output/wrangler.toml . | ||
|
||
- name: Deploy | ||
uses: cloudflare/wrangler-action@v3 | ||
with: | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
#name: API | ||
# | ||
#on: | ||
# workflow_run: | ||
# workflows: [ Release ] | ||
# types: [ completed ] | ||
# | ||
# release: | ||
# types: [ published ] | ||
# | ||
#jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 10 | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: pnpm/action-setup@v4 | ||
# - uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: 20 | ||
# cache: pnpm | ||
# - run: pnpm install | ||
# | ||
# - name: Build server code | ||
# run: pnpm api:build | ||
# | ||
# - uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: build | ||
# path: | | ||
# api/.output | ||
# api/wrangler.toml | ||
# retention-days: 1 | ||
# include-hidden-files: true | ||
# | ||
# deploy: | ||
# needs: build | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 10 | ||
# environment: | ||
# name: cloudflare | ||
# url: https://sert.somespecialone.workers.dev | ||
# steps: | ||
# - uses: actions/download-artifact@v4 | ||
# with: | ||
# name: build | ||
# path: .output | ||
# | ||
# - name: Move deploy configuration | ||
# run: mv .output/wrangler.toml . | ||
# | ||
# - name: Deploy | ||
# uses: cloudflare/wrangler-action@v3 | ||
# with: | ||
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
# apiToken: ${{ secrets.CLOUDFLARE_API_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
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