Remove js deps placeholder (#2168) #1165
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: wc:deploy | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "packages/web-client/**" | |
- ".github/workflows/webclient-deploy.yml" | |
- "wc.prod.fly.toml" | |
- "wc.Dockerfile" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ic-production: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- name: Install dependencies | |
shell: bash | |
run: npm install | |
- name: Install dfx | |
uses: dfinity/setup-dfx@main | |
with: | |
dfx-version: "0.13.1" | |
- name: Confirm successful installation | |
run: dfx --version | |
- run: npm run wc:build:static:prod # Build without sentry | |
- name: Setup env to deploy | |
run: | | |
touch actions_identity.pem | |
echo "${{ secrets.CANISTER_CONTROLLER_SECRET_KEY }}" > actions_identity.pem | |
dfx identity import --disable-encryption actions actions_identity.pem | |
rm actions_identity.pem | |
dfx identity use actions | |
- run: dfx deploy webclient --network ic --no-wallet -y | |
fly-production: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- run: npm install | |
- name: Touch .env | |
shell: bash | |
working-directory: "packages/web-client/" | |
run: | | |
touch .env | |
echo "SENTRY_AUTH_TOKEN=\"${{ secrets.SENTRY_AUTH_TOKEN }}\"" >> .env | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Deploy production build | |
run: flyctl deploy --config ./wc.prod.fly.toml | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLYIO_KIT_DEPLOY_GH_ACTION }} |