Skip to content

Commit

Permalink
ci: Add beta version on merge to develop [DO-2188] (#238)
Browse files Browse the repository at this point in the history
* Adding beta versioning

* ci: Add beta development

* ci: Change name and description for beta versions

* ci: Add diferent extension id for beta deployment
  • Loading branch information
alpeto9 authored Feb 20, 2024
1 parent 9864255 commit 48fd55c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@ jobs:
parse_json: true

- name: Github PreRelease
if: startsWith(github.ref_name, 'release/') || github.ref == 'refs/heads/develop'
if: github.ref == 'refs/heads/develop'
env:
VITE_GITHUB_REF_NAME: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
GOOGLE_CLIENT_ID: ${{ env.GH_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ env.GH_CLIENT_SECRET }}
GOOGLE_REFRESH_TOKEN: ${{ env.GH_REFRESH_TOKEN }}
GOOGLE_EXTENSION_ID: ${{ env.GH_EXTENSION_ID }}
TARGET_RELEASE: local
GOOGLE_EXTENSION_ID: ${{ env.GH_BETA_EXTENSION_ID }}
TARGET_RELEASE: trustedTesters
run: |
sed -i "s/ name:.*/ name: 'Radix Wallet Connector - BETA'/" vite.config.ts
sed -i -E '/^ *description:.*$/ {N; s/.*/ description: '"'"'THIS EXTENSION IS FOR BETA TESTING'"'"',/}' vite.config.ts
sed -i "s/\${EXTENSION_ID}/$GOOGLE_EXTENSION_ID/g" release.config.cjs
sed -i "s/\${TARGET}/$TARGET_RELEASE/g" release.config.cjs
npx semantic-release --verifyConditions | tee out
Expand Down

0 comments on commit 48fd55c

Please sign in to comment.