Merge pull request #108 from AmbireTech/v5-development #4
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: 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 |