Merge pull request #118 from ar-io/merge-hotfix-to-develop #72
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: Staging deploy | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
step: ['lint:check', 'test', 'build'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- run: yarn install --frozen-lockfile | |
- run: yarn ${{ matrix.step }} | |
deploy-to-github: | |
runs-on: ubuntu-latest | |
needs: build | |
environment: develop | |
if: ${{ github.ref == 'refs/heads/develop' }} | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install and Build 🔧 | |
run: | | |
yarn install --frozen-lockfile | |
yarn build | |
env: | |
# FOR BUILD | |
VITE_NODE_ENV: develop | |
VITE_SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
VITE_SENTRY_RELEASE: ${{ github.sha }} | |
VITE_SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
VITE_SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
VITE_SENTRY_DSN_PUBLIC_KEY: ${{ secrets.SENTRY_DSN_PUBLIC_KEY }} | |
VITE_SENTRY_DSN_PROJECT_URI: ${{ secrets.SENTRY_DSN_PROJECT_URI }} | |
VITE_SENTRY_DSN_PROJECT_ID: ${{ secrets.SENTRY_DSN_PROJECT_ID }} | |
VITE_GITHUB_HASH: ${{ github.sha }} | |
VITE_IO_PROCESS_ID: ${{ secrets.IO_PROCESS_ID }} | |
# ao infra settings | |
VITE_AO_CU_URL: ${{ vars.VITE_AO_CU_URL }} | |
- name: Add CNAME Record | |
run: | | |
echo ${{ vars.DOMAIN_NAME }} > dist/CNAME | |
cp ./404.html ./dist | |
- name: Deploy 🚀 | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: dist |