Link to specific accounts from the address bar (#428) #1063
This file contains 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: UI deployment | |
on: | |
push: | |
branches: ['main'] | |
paths: ['packages/ui/**/*'] | |
pull_request: | |
branches: ['main'] | |
paths: ['packages/ui/**/*'] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./packages/ui/ | |
permissions: | |
contents: read | |
deployments: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: yarn | |
node-version: '16' | |
cache-dependency-path: 'yarn.lock' | |
- run: corepack enable | |
- run: yarn install --immutable | |
- run: yarn build | |
env: | |
VITE_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }} | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: 2238a825c5aca59233eab1f221f7aefb | |
projectName: multix | |
directory: ./packages/ui/build | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |