Merge pull request #292 from AmbireTech/development #33
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: Release (prod π©πΌπ¦π―οΈ) | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
release: | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
- name: Setup π¦ | |
uses: ./.github/actions/setup | |
- name: Prepare | |
run: yarn prepare | |
- name: Build π οΈ | |
env: | |
REACT_APP_NODE_ENV: production | |
REACT_APP_IPFS_GATEWAY: https://ipfs.adex.network/ipfs/ | |
REACT_APP_DAPP_NAME: "AdEx Platform" | |
REACT_APP_DAPP_ICON_PATH: https://raw.githubusercontent.com/AmbireTech/adex-brand/main/Logos/AdEx%20logo%20%7C%20PNG/adex_symbol_square_128px.png | |
REACT_APP_BACKEND_BASE_URL: https://vhoda.adex.network | |
REACT_APP_VALIDATOR_BASE_URL: https://scratchy.adex.network:8443 | |
REACT_APP_IS_MANUAL_DEPOSITING: true | |
run: yarn build | |
# - name: GH pages 404 | |
# run: cp ./build/index.html ./build/404.html | |
- name: Release (prod π©πΌπ¦) | |
if: github.ref == 'refs/heads/main' | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
repository-name: AmbireTech/adex-interface-prod-gh-pages | |
branch: gh-pages | |
folder: ./build | |
cname: web.adex.network |