Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download .github/workflows/web.yml from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 2.23 kB
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/.github/workflows/web.yml
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@6917738ca6db1603dee9e07994b4e42d5e1ae9b2/.github/workflows/web.yml
-
curl -L -o web.yml https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/.github/workflows/web.yml
2.23 kB
| name: web | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| deployments: write | |
| defaults: | |
| run: | |
| working-directory: ./web | |
| jobs: | |
| validate: | |
| name: Validate | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| node: [24] | |
| steps: | |
| - name: Checkout π | |
| uses: actions/checkout@master | |
| - uses: pnpm/action-setup@v6 | |
| name: Install pnpm | |
| with: | |
| version: 11.11.0 | |
| - name: Install dependencies π¦ | |
| run: pnpm install --trust-lockfile | |
| - name: Run linter π | |
| run: pnpm lint | |
| - name: Run tests π§ͺ | |
| run: pnpm test | |
| - name: Build ποΈ | |
| run: mv .env.production .env && echo "GITHUB_SHA=${GITHUB_SHA}" >> .env && pnpm run generate | |
| deploy: | |
| name: Deploy | |
| needs: validate | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout π | |
| uses: actions/checkout@master | |
| - name: Setup Node π’ | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: '24.18' | |
| - uses: pnpm/action-setup@v6 | |
| name: Install pnpm | |
| with: | |
| version: 11.11.0 | |
| - name: Install dependencies π¦ | |
| run: pnpm install --trust-lockfile | |
| - name: Build ποΈ | |
| run: mv .env.production .env && echo "GITHUB_SHA=${GITHUB_SHA}" >> .env && pnpm run generate | |
| - name: Cloudflare Deploy π | |
| uses: cloudflare/wrangler-action@v4 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy web/.output/public --project-name=httpsms | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Firebase Deploy π | |
| uses: FirebaseExtended/action-hosting-deploy@500ac625ca2dd40cbd15f7659af953801858032a | |
| with: | |
| repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
| channelId: live | |
| entryPoint: "./web" | |
| firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_HTTPSMS_86C51 }}" | |
| projectId: httpsms-86c51 | |