Merge pull request #305 from ar-io/PE-4693-implement-top-level-reconnect #1520
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@v3 | |
- run: npm ci | |
- run: npm run ${{ matrix.step }} | |
deploy-to-github: | |
runs-on: ubuntu-latest | |
needs: build | |
if: ${{ github.ref == 'refs/heads/develop' }} | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Install and Build 🔧 | |
run: | | |
npm ci | |
npm run build | |
env: | |
# FOR BUILD | |
NODE_OPTIONS: --max-old-space-size=32768 | |
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_ARWEAVE_HOST: ${{ vars.ARWEAVE_HOST }} | |
VITE_ARNS_SERVICE_API: ${{ vars.ARNS_SERVICE_API }} | |
- 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 |