1.2.1 🌈 #7
Workflow file for this run
This file contains 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 mainnet website | |
on: | |
release: | |
types: [ published ] | |
# push: | |
# branches: | |
# - 'release' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
environment: | |
name: mainnet | |
url: https://id.hibit.app | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'yarn' | |
- name: build | |
run: | | |
export VITE_RELEASE_VERSION=${{ github.ref }} | |
./scripts/build_prod.sh | |
- uses: amondnet/vercel-action@v25.2.0 #deploy | |
with: | |
scope: ${{ secrets.TEAM_ID_1 }} | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
vercel-token: ${{ secrets.VERCEL_TOKEN_1 }} # Required | |
vercel-args: '--prod' | |
vercel-org-id: ${{ secrets.ORG_ID_1}} #Required | |
vercel-project-id: ${{ secrets.PROJECT_ID_1}} #Required | |
- name: Feishu Robot Message | |
run: | | |
curl -X POST -H "Content-Type: application/json" -d '{"msg_type":"text","content":{"text":"hibit-id mainnet web published\nrepository: ${{ github.repository }}\ncommitter: ${{ github.actor }}\ncompare: ${{ github.event.compare }}\njob status: ${{ job.status }}"}}' ${{ secrets.FEISHU_ROBOT_WEBHOOK_URL }} | |
# url: ${{ secrets.FEISHU_ROBOT_WEBHOOK_URL }} | |
# title: "hibit-id mainnet web published" | |
# text: | | |
# hibit-id mainnet web published | |
# repository: ${{ github.repository }} | |
# committer: ${{ github.actor }} | |
# compare: ${{ github.event.compare }} | |
# job status: ${{ job.status }} |