Skip to content

Commit

Permalink
preview of main branch is called staging env
Browse files Browse the repository at this point in the history
  • Loading branch information
gobengo committed Nov 2, 2023
1 parent 25a9fe6 commit 863f8c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ jobs:
- test
runs-on: ubuntu-latest
environment:
name: "${{ format('preview-{0}', github.ref_name) }}"
name: ${{ (github.ref_name != "main") && format('preview-{0}', github.ref_name) || "staging" }}
url: ${{ steps.cloudflare_url.outputs.stdout }}
steps:
- id: environment_name
run: echo "preview-$GITHUB_REF_NAME"

- uses: actions/checkout@v3
- uses: ./.github/actions/pnpm
- run: pnpm pages:build
Expand Down

0 comments on commit 863f8c7

Please sign in to comment.