Fix initial token claim for new wallets #1090
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 | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: "${{ github.ref != 'refs/heads/main' }}" | |
on: | |
workflow_dispatch: | |
merge_group: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
env: | |
CACHE_TIMEOUT_MINUTES: 5 | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: sccache | |
CC: sccache clang | |
CXX: sccache clang++ | |
FAUCET_TOPUP_REQ_URL: '${{ vars.FAUCET_TOPUP_REQ_URL }}' | |
FAUCET_TX_URL_CALIBNET: '${{ vars.FAUCET_TX_URL_CALIBNET }}' | |
FAUCET_TX_URL_MAINNET: '${{ vars.FAUCET_TX_URL_MAINNET }}' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup sccache | |
uses: mozilla-actions/[email protected] | |
timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" | |
continue-on-error: true | |
- name: Checkout code | |
uses: actions/checkout@v5 | |
- name: Install wasm-pack | |
run: | |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- uses: sigoden/install-binary@v1 | |
with: | |
repo: WebAssembly/binaryen | |
name: wasm-opt | |
- name: Install worker-build | |
run: cargo install --locked worker-build | |
- run: corepack enable | |
- run: yarn --immutable | |
- name: Dry Run | |
if: github.ref != 'refs/heads/main' | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
command: deploy --dry-run | |
- name: Publish | |
if: github.ref == 'refs/heads/main' | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} |