feat(arcades): add public identity schema #705
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| # trigger on version tag push | |
| tags: | |
| - 'v*' | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| deployments: write | |
| name: Publish to Cloudflare Workers | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: 'pnpm' | |
| - name: Cache Turbo | |
| uses: actions/cache@v4 | |
| with: | |
| path: .turbo/cache | |
| key: turbo-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: | | |
| turbo-${{ runner.os }}- | |
| - name: Get Metadata | |
| id: git-meta | |
| shell: bash | |
| run: | | |
| export TRUNCATED_GITHUB_SHA=$(echo ${{ github.sha }} | cut -c1-7); | |
| export VERSION=${GITHUB_REF/refs\/tags\//}; | |
| echo "minisha=$TRUNCATED_GITHUB_SHA" >> $GITHUB_OUTPUT; | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT; | |
| echo "versionlabel=$VERSION+$TRUNCATED_GITHUB_SHA" >> $GITHUB_OUTPUT; | |
| # Populate Bundle Information | |
| - name: Populate Bundle Information | |
| id: bundle-info | |
| shell: bash | |
| run: | | |
| echo "VITE_GIT_COMMIT=${{ github.sha }}" >> ${GITHUB_ENV} | |
| echo "VITE_VERSION=${{ steps.git-meta.outputs.version }}" >> ${GITHUB_ENV} | |
| echo "VITE_BUILD_NUMBER=${{ github.run_number }}" >> ${GITHUB_ENV} | |
| echo "VITE_BUILD_TIME=$(date --utc +%FT%TZ)" >> ${GITHUB_ENV} | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| shell: bash | |
| run: pnpm turbo run build --filter=@gekichumai/dxrating-web... | |
| env: | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| VITE_BACKEND_URL: https://miruku.dxrating.net | |
| VITE_BETTER_AUTH_URL: https://miruku.dxrating.net | |
| - name: Deploy to Cloudflare Workers | |
| run: pnpm --filter @gekichumai/dxrating-web exec wrangler deploy --config=dist/server/wrangler.json --name=dxrating | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |