Dominic Elm
commited on
Commit
·
849880e
1
Parent(s):
50885b0
ci: remove deployment workflow
Browse files- .github/workflows/ci.yaml +0 -50
.github/workflows/ci.yaml
CHANGED
|
@@ -25,53 +25,3 @@ jobs:
|
|
| 25 |
|
| 26 |
- name: Run tests
|
| 27 |
run: pnpm run test
|
| 28 |
-
|
| 29 |
-
build-and-deploy:
|
| 30 |
-
name: Build and Deploy
|
| 31 |
-
needs: test
|
| 32 |
-
runs-on: ubuntu-latest
|
| 33 |
-
environment: ${{ github.ref_name == 'master' && 'production' || 'staging' }}
|
| 34 |
-
if: ${{ github.ref != 'refs/heads/master' }}
|
| 35 |
-
steps:
|
| 36 |
-
- name: Checkout
|
| 37 |
-
uses: actions/checkout@v4
|
| 38 |
-
|
| 39 |
-
- name: Setup and Build
|
| 40 |
-
uses: ./.github/actions/setup-and-build
|
| 41 |
-
|
| 42 |
-
- name: Deploy to Cloudflare
|
| 43 |
-
id: deploy
|
| 44 |
-
uses: cloudflare/wrangler-action@v3
|
| 45 |
-
with:
|
| 46 |
-
wranglerVersion: '* -w'
|
| 47 |
-
packageManager: pnpm
|
| 48 |
-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
| 49 |
-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
| 50 |
-
command: pages deploy
|
| 51 |
-
|
| 52 |
-
- name: Deployment URL
|
| 53 |
-
env:
|
| 54 |
-
DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }}
|
| 55 |
-
run: echo $DEPLOYMENT_URL
|
| 56 |
-
|
| 57 |
-
- name: Comment on Commit
|
| 58 |
-
if: github.event_name == 'push'
|
| 59 |
-
uses: hasura/comment-progress@v2.3.0
|
| 60 |
-
with:
|
| 61 |
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
| 62 |
-
repository: ${{ github.repository }}
|
| 63 |
-
id: deploy-preview-commit
|
| 64 |
-
commit-sha: ${{ github.sha }}
|
| 65 |
-
message: '${{ github.sha }} has been deployed to ${{ steps.deploy.outputs.deployment-url }} :rocket:'
|
| 66 |
-
recreate: true
|
| 67 |
-
|
| 68 |
-
- name: Comment on PR
|
| 69 |
-
if: github.event_name == 'pull_request'
|
| 70 |
-
uses: hasura/comment-progress@v2.3.0
|
| 71 |
-
with:
|
| 72 |
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
| 73 |
-
repository: ${{ github.repository }}
|
| 74 |
-
id: deploy-preview-pr
|
| 75 |
-
number: ${{ github.event.number }}
|
| 76 |
-
message: '#${{ github.event.number }} has been deployed to ${{ steps.deploy.outputs.deployment-url }} :rocket:'
|
| 77 |
-
recreate: true
|
|
|
|
| 25 |
|
| 26 |
- name: Run tests
|
| 27 |
run: pnpm run test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|