diff --git a/.github/workflows/publish-dist.yml b/.github/workflows/publish-dist.yml index efc4f4f3c..d0db8afd3 100644 --- a/.github/workflows/publish-dist.yml +++ b/.github/workflows/publish-dist.yml @@ -62,17 +62,19 @@ jobs: - name: Define variables run: | envName='' + domain="vega.rocks" if [[ "${{ github.event_name }}" = "push" ]]; then - domain="vega.rocks" if [[ "${{ github.ref }}" =~ .*release/.* ]]; then envName="$(echo ${{ github.ref }} | rev | cut -d '/' -f 1 | rev)" - if [[ "${{ github.ref }}" =~ .*mainnet.* ]]; then - domain="vega.community" - fi elif [[ "${{ github.ref }}" =~ .*develop$ ]]; then envName="stagnet1" elif [[ "${{ matrix.app}}" = "trading" ]] && [[ ${{ startsWith(github.ref, 'refs/tags/v') && 'true' || 'false' }} = "true" ]]; then envName="mainnet" + elif [[ "${{ github.ref }}" =~ .*main$ ]]; then + envName="mainnet" + fi + if [[ "${envName}" = "mainnet" ]]; then + domain="vega.xyz" fi bucketName="${{ matrix.app }}.${envName}.${domain}" echo BUCKET_NAME=${bucketName} >> $GITHUB_ENV