Deploy to marketplace data #31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to marketplace data | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: 1.2.23 | |
| - name: Install root dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Install tool package dependencies | |
| run: bun run install:plugins | |
| - name: Build and deploy to marketplace | |
| env: | |
| STORAGE_VENDOR: ${{ secrets.STORAGE_VENDOR }} | |
| STORAGE_REGION: ${{ secrets.STORAGE_REGION }} | |
| STORAGE_ACCESS_KEY_ID: ${{ secrets.STORAGE_ACCESS_KEY_ID }} | |
| STORAGE_SECRET_ACCESS_KEY: ${{ secrets.STORAGE_SECRET_ACCESS_KEY }} | |
| STORAGE_PUBLIC_BUCKET: ${{ secrets.STORAGE_PUBLIC_BUCKET }} | |
| STORAGE_PRIVATE_BUCKET: ${{ secrets.STORAGE_PRIVATE_BUCKET }} | |
| STORAGE_S3_ENDPOINT: ${{ secrets.STORAGE_S3_ENDPOINT }} | |
| STORAGE_S3_FORCE_PATH_STYLE: ${{ secrets.STORAGE_S3_FORCE_PATH_STYLE }} | |
| STORAGE_S3_MAX_RETRIES: ${{ secrets.STORAGE_S3_MAX_RETRIES }} | |
| STORAGE_OSS_ENDPOINT: ${{ secrets.STORAGE_OSS_ENDPOINT }} | |
| STORAGE_OSS_CNAME: ${{ secrets.STORAGE_OSS_CNAME }} | |
| STORAGE_OSS_SECURE: ${{ secrets.STORAGE_OSS_SECURE }} | |
| STORAGE_OSS_INTERNAL: ${{ secrets.STORAGE_OSS_INTERNAL }} | |
| STORAGE_COS_PROTOCOL: ${{ secrets.STORAGE_COS_PROTOCOL }} | |
| STORAGE_COS_USE_ACCELERATE: ${{ secrets.STORAGE_COS_USE_ACCELERATE }} | |
| STORAGE_COS_CNAME_DOMAIN: ${{ secrets.STORAGE_COS_CNAME_DOMAIN }} | |
| STORAGE_COS_PROXY: ${{ secrets.STORAGE_COS_PROXY }} | |
| run: bun ./scripts/deploy-marketplace.ts | |
| - name: Notify deployment success | |
| if: success() | |
| run: | | |
| echo "🚀 Marketplace deployment completed successfully!" | |
| echo "Commit: ${{ github.sha }}" | |
| - name: Notify deployment failure | |
| if: failure() | |
| run: | | |
| echo "❌ Marketplace deployment failed!" | |
| echo "Commit: ${{ github.sha }}" | |
| exit 1 |