feat: update key registry (#190) #58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Deploy Auth Server Testnet" | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: | |
| - "packages/auth-server/**" | |
| - "packages/sdk/**" | |
| workflow_dispatch: | |
| env: | |
| HUSKY: 0 | |
| CI: true | |
| NUXT_PUBLIC_GTAG_ID: ${{ secrets.AUTH_SERVER_ANALYTICS_ID }} | |
| jobs: | |
| build_and_preview: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 # v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.11.0 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/Iron | |
| cache: 'pnpm' | |
| # SDK depends on contracts | |
| - name: Install contract dependencies | |
| run: pnpm install -r --frozen-lockfile | |
| working-directory: packages/contracts | |
| - name: Build contracts | |
| run: pnpm run build | |
| working-directory: packages/contracts | |
| # Local node to have target for deploy | |
| - name: Era Test Node Action | |
| uses: dutterbutter/anvil-zksync-action@v1.1.0 | |
| - name: Deploy contracts | |
| run: pnpm run deploy --file ../auth-server/stores/local-node.json | |
| working-directory: packages/contracts | |
| - name: Install dependencies | |
| run: pnpm install -r --frozen-lockfile | |
| - name: Build apps | |
| env: | |
| NUXT_PUBLIC_DEFAULT_CHAIN_ID: 300 | |
| NUXT_PUBLIC_SALT_SERVICE_URL: "https://sso-oidc.zksync.dev/salt" | |
| run: pnpm nx build auth-server | |
| - name: Deploy firebase hosting | |
| uses: matter-labs/action-hosting-deploy@main | |
| with: | |
| repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
| firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_AUTH_SERVER_STAGING }}" | |
| projectId: zksync-auth-server-staging | |
| target: zksync-auth-server-staging | |
| channelId: live |