diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3e55038..f8d931c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,6 +14,9 @@ jobs: needs: - test runs-on: ubuntu-latest + environment: + name: ${{ (github.ref_name == 'main') && 'staging' || format('preview-{0}', github.ref_name) }} + url: ${{ (github.ref_name == 'main') && 'https://staging.console.web3.storage/' || steps.cloudflare_url.outputs.stdout }} steps: - uses: actions/checkout@v3 - uses: ./.github/actions/pnpm