Przeglądaj źródła

Add GitHub Actions deployment workflow to automate deployments

🤖 Generated with opencode
Co-Authored-By: opencode <[email protected]>
Dax Raad 9 miesięcy temu
rodzic
commit
5d4ccc8883
1 zmienionych plików z 28 dodań i 0 usunięć
  1. 28 0
      .github/workflows/deploy.yml

+ 28 - 0
.github/workflows/deploy.yml

@@ -0,0 +1,28 @@
+name: deploy
+
+on:
+  push:
+    branches:
+      - dontlook
+    paths:
+      - "app/**"
+
+concurrency: ${{ github.workflow }}-${{ github.ref }}
+
+jobs:
+  deploy:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+
+      - uses: oven-sh/setup-bun@v1
+        with:
+          bun-version: latest
+
+      - run: bun install
+        working-directory: app
+
+      - run: bun sst deploy --stage=dev
+        working-directory: app
+        env:
+          CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}