mirror of
https://github.com/coleam00/bolt.new-any-llm
synced 2024-12-27 22:33:03 +00:00
ci: remove deployment workflow
This commit is contained in:
parent
50885b065d
commit
849880e967
50
.github/workflows/ci.yaml
vendored
50
.github/workflows/ci.yaml
vendored
@ -25,53 +25,3 @@ jobs:
|
||||
|
||||
- name: Run tests
|
||||
run: pnpm run test
|
||||
|
||||
build-and-deploy:
|
||||
name: Build and Deploy
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
environment: ${{ github.ref_name == 'master' && 'production' || 'staging' }}
|
||||
if: ${{ github.ref != 'refs/heads/master' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup and Build
|
||||
uses: ./.github/actions/setup-and-build
|
||||
|
||||
- name: Deploy to Cloudflare
|
||||
id: deploy
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
wranglerVersion: '* -w'
|
||||
packageManager: pnpm
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy
|
||||
|
||||
- name: Deployment URL
|
||||
env:
|
||||
DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }}
|
||||
run: echo $DEPLOYMENT_URL
|
||||
|
||||
- name: Comment on Commit
|
||||
if: github.event_name == 'push'
|
||||
uses: hasura/comment-progress@v2.3.0
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repository: ${{ github.repository }}
|
||||
id: deploy-preview-commit
|
||||
commit-sha: ${{ github.sha }}
|
||||
message: '${{ github.sha }} has been deployed to ${{ steps.deploy.outputs.deployment-url }} :rocket:'
|
||||
recreate: true
|
||||
|
||||
- name: Comment on PR
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: hasura/comment-progress@v2.3.0
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repository: ${{ github.repository }}
|
||||
id: deploy-preview-pr
|
||||
number: ${{ github.event.number }}
|
||||
message: '#${{ github.event.number }} has been deployed to ${{ steps.deploy.outputs.deployment-url }} :rocket:'
|
||||
recreate: true
|
||||
|
Loading…
Reference in New Issue
Block a user