Skip to content

Merge pull request #108 from AmbireTech/v5-development #4

Merge pull request #108 from AmbireTech/v5-development

Merge pull request #108 from AmbireTech/v5-development #4

Workflow file for this run

name: Build and Deploy (prod 🍩🐼)
on:
push:
branches:
- v5-main
permissions:
contents: write
jobs:
build-and-deploy-degen:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- name: Install Node.js βš™οΈ
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install NPM packages
run: npm ci
- name: Build project πŸ› οΈ
run: npm run build
env:
IPFS_GATEWAY: https://ipfs.moonicorn.network/ipfs/
BACKEND_URL: https://backend.moonicorn.network
- name: Copy files
run: cp -rf ./dev-banners ./dist.browser && cp dnt-policy.txt dist.browser/
- name: Add .nojekyll file
run: touch ./dist.browser/.nojekyll
- name: Deploy πŸš€πŸŒ• (prod 🍩🐼) (moonicorn.network)
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: ./dist.browser
external_repository: AmbireTech/adex-adview-v5-host-moonicorn
publish_branch: gh-pages
cname: viewmngr.moonicorn.network
- name: Deploy πŸš€πŸŒ• (prod 🍩🐼) (adex.network)
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: ./dist.browser
external_repository: AmbireTech/adex-adview-v5-host-adex
publish_branch: gh-pages
cname: viewmngr.adex.network