Skip to content

Commit

Permalink
fix: deploy to staging with env (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 authored Jan 17, 2024
1 parent dfb3404 commit 3ffa114
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,25 @@ jobs:
with:
fetch-depth: 0

- name: Download Dist package
uses: dsaltares/fetch-gh-release-asset@master
- name: Setup Node.js
uses: actions/setup-node@v3
with:
version: "tags/v${{ needs.publish.outputs.releaseVersion }}"
file: "dist.zip"
target: "dist.zip"
token: ${{ secrets.GITHUB_TOKEN }}
node-version: '18'
cache: 'npm'

- name: Install dependencies
run: |
npm ci --force
- name: Unzip Dist package
- name: Setup .env
run: |
unzip dist.zip
echo "WALLET_CONNECT_PROJECT_ID=${{ secrets.WALLET_CONNECT_PROJECT_ID }}" > .env
echo "ANKR_TOKEN=${{ secrets.ANKR_TOKEN }}" >> .env
echo "SCREENING_API_URL=${{ secrets.SCREENING_API_URL }}" >> .env
- name: Update config
- name: Build
run: |
echo "window[\"##runtimeConfig\"] = { firebaseProjectId: \"staging-zksync-dapp-wallet-v2\", appEnvironment: \"staging\" };" > dist/config.js
npm run generate
- name: Deploy
uses: matter-labs/action-hosting-deploy@main
Expand Down

0 comments on commit 3ffa114

Please sign in to comment.