Feat/etherfi points (#742) #163
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: deploy-arbitrum-dev | |
on: | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: 'Choose an environment to deploy to: <arb>' | |
required: true | |
default: 'arb' | |
push: | |
branches: | |
- v3/dev | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: ${{ github.event.inputs.environment || 'arb' }} | |
permissions: | |
contents: read | |
deployments: write | |
name: Deploy to Cloudflare Pages | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'yarn' | |
- name: Yarn Install | |
run: yarn install --frozen-lockfile | |
- name: Build Web | |
run: yarn nx build web --parallel | |
env: | |
NX_CONTACT_EMAIL: ${{ secrets.NX_CONTACT_EMAIL }} | |
NX_DD_APP_ID: ${{ secrets.NX_DD_APP_ID }} | |
NX_DD_CLIENT_TOKEN: ${{ secrets.NX_DD_CLIENT_TOKEN }} | |
NX_DD_BASE_URL: ${{ secrets.NX_DD_BASE_URL }} | |
NX_DD_SITE: ${{ secrets.NX_DD_SITE }} | |
NX_APP_URL: ${{ secrets.NX_APP_URL }} | |
NX_DATA_URL: ${{ secrets.NX_DATA_URL }} | |
# This segment key is not the same as the prod one | |
NX_SEGMENT_KEY: ${{ secrets.NX_DEV_SEGMENT_KEY }} | |
NX_ENV: ${{ github.event.inputs.environment || 'arb' }} | |
NX_COMMIT_REF: ${{ github.sha }} | |
- name: Publish Dev | |
uses: cloudflare/pages-action@1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
projectName: notional-web-${{ github.event.inputs.environment || 'arb-dev' }} | |
directory: dist/apps/web | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: Slack Notification | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |