diff --git a/.github/workflows/cleanup-preview-databases.yml b/.github/workflows/cleanup-preview-databases.yml deleted file mode 100644 index a8be8db1d3..0000000000 --- a/.github/workflows/cleanup-preview-databases.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Cleanup Preview Databases - -env: - SNAPLET_ACCESS_TOKEN: ${{ secrets.SNAPLET_ACCESS_TOKEN }} - SNAPLET_PROJECT_ID: cl4u26bwz7962859ply7ibuo43t - -on: - pull_request: - types: [closed] - branches: - - main - -jobs: - delete: - runs-on: ubuntu-latest - steps: - - uses: snaplet/action@v1 - if: ${{ env.SNAPLET_ACCESS_TOKEN && env.SNAPLET_PROJECT_ID }} - with: - delete: true diff --git a/.github/workflows/db-preview.yml b/.github/workflows/db-preview.yml deleted file mode 100644 index 6604523f4c..0000000000 --- a/.github/workflows/db-preview.yml +++ /dev/null @@ -1,37 +0,0 @@ -# .github/workflows/preview.yml - -name: Preview Environment - -env: - SNAPLET_ACCESS_TOKEN: ${{ secrets.SNAPLET_ACCESS_TOKEN }} - SNAPLET_PROJECT_ID: ${{ secrets.SNAPLET_PROJECT_ID }} - VERCEL_ACCESS_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - -on: - pull_request: - types: [opened, synchronize, closed] - branches: - - main - -jobs: - db-preview-deploy: - if: ${{ github.event.action == 'opened' || github.event.action == 'synchronize' }} - runs-on: ubuntu-latest - steps: - - id: snaplet - uses: snaplet/action@v1 - - uses: snaplet/vercel-action@v1 - with: - env: | - DATABASE_URL=${{ steps.snaplet.outputs.database-url }} - db-preview-delete: - if: ${{ github.event.action == 'closed' }} - runs-on: ubuntu-latest - steps: - - uses: snaplet/action@v1 - with: - delete: true - - uses: snaplet/vercel-action@v1 - with: - delete: true diff --git a/.github/workflows/db-staging-snapshot.yml b/.github/workflows/db-staging-snapshot.yml deleted file mode 100644 index c31beb1693..0000000000 --- a/.github/workflows/db-staging-snapshot.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Staging DB Snapshot -on: - schedule: - - cron: "0 4 * * 1-5" # At 04:00 on every day-of-week from Monday through Friday. - workflow_dispatch: -jobs: - db-staging-snapshot: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Install Snaplet CLI - run: curl -sL https://app.snaplet.dev/get-cli/ | bash - - name: Restore Snapshot - run: snaplet snapshot restore -y - env: - SNAPLET_DATABASE_URL: ${{ secrets.SNAPLET_DATA_TARGET_DB_URL }} - SNAPLET_ACCESS_TOKEN: ${{ secrets.SNAPLET_ACCESS_TOKEN }} - SNAPLET_DATABASE_ID: ${{ secrets.SNAPLET_DATABASE_ID }}