Skip to content

Commit

Permalink
Deploy y-sweet from github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelazaroff committed Feb 21, 2024
1 parent 9c2aec3 commit ea10d46
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ysweet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Y-Sweet
on:
push:
paths:
- "wrangler.toml"
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Clone y-sweet
uses: actions/checkout@v3
with:
repository: drifting-in-space/y-sweet
- name: Build y-sweet
run: ./build.sh
working-directory: ./y-sweet/crates/y-sweet-worker
- name: Deploy y-sweet
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion lib/y-sweet
Submodule y-sweet deleted from 1928b0
2 changes: 1 addition & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "travel-y-sweet"
main = "lib/y-sweet/crates/y-sweet-worker/build/worker/shim.mjs"
main = "y-sweet/crates/y-sweet-worker/build/worker/shim.mjs"
compatibility_date = "2022-01-20"

[vars]
Expand Down

0 comments on commit ea10d46

Please sign in to comment.