Merge pull request #255 from archethic-foundation/dev #63
This file contains hidden or 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
| on: | |
| push: | |
| branches: | |
| - mainnet | |
| jobs: | |
| deploy_to_aeHosting: | |
| runs-on: ubuntu-latest | |
| name: A job to deploy file to aeHosting | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Clone and copy bridge-contracts repository | |
| run: | | |
| rm -rf contracts | |
| git clone https://github.com/archethic-foundation/bridge-contracts.git contracts | |
| - name: Install NPM dependencies in contracts/evm | |
| run: | | |
| cd contracts/evm | |
| npm install | |
| npx hardhat compile | |
| cd - | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "stable" | |
| flutter-version: "3.27.4" | |
| - run: flutter --version | |
| - name: Install dependencies | |
| run: | | |
| flutter clean | |
| flutter pub get | |
| - name: Check files | |
| run: | | |
| ls -R | |
| - name: Build web app | |
| run: flutter build web --web-renderer canvaskit --release | |
| - name: Inject meta robots tag if in test environment | |
| run: | | |
| sed -i 's/<!-- #robotsMetaTag -->//' build/web/index.html | |
| - name: Check files | |
| run: | | |
| ls -R | |
| - name: Deploy to aeHosting | |
| id: deploy | |
| uses: archethic-foundation/aeweb-github-action@v1.8.9 | |
| with: | |
| seed: ${{ secrets.ARCH_BASE_SEED_MAINNET }} | |
| endpoint: "https://mainnet.archethic.net" | |
| path: "build/web" | |
| sslCertificateFile: "certificate_bridge_mainnet.crt" | |
| sslKey: ${{ secrets.SSL_KEY_MAINNET }} | |
| keychainFundingService: "archethic-wallet-archethic-front-app" | |
| keychainWebsiteService: "aeweb-BRIDGE" | |
| sendTransactionTimeout: 260 | |
| percentageOfConfirmations: 50 |