Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

release 1.0.1

release 1.0.1 #2

Workflow file for this run

name: Main
on:
push:
branches:
- main
jobs:
main:
if: "! startsWith(github.event.head_commit.message, '[CI Skip]')"
strategy:
matrix:
step: ['build:release']
name: ${{ matrix.step }}
runs-on: ubuntu-22.04
environment: 'extension'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT }}
- name: ${{ matrix.step }}
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
GH_PAT: ${{ secrets.GH_PAT }}
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }}
GH_RELEASE_FILES: main-build.zip,main-build-firefox.zip,main-src.zip
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TRANSAK_API_KEY: ${{ secrets.TRANSAK_API_KEY }}
COINBASE_PAY_ID: ${{ secrets.COINBASE_PAY_ID }}
CHAINFLIP_BROKER_API: ${{ secrets.CHAINFLIP_BROKER_API }}
BITTENSOR_API_KEY_1: ${{ secrets.BITTENSOR_API_KEY_1 }}
BITTENSOR_API_KEY_2: ${{ secrets.BITTENSOR_API_KEY_2 }}
BITTENSOR_API_KEY_3: ${{ secrets.BITTENSOR_API_KEY_3 }}
BITTENSOR_API_KEY_4: ${{ secrets.BITTENSOR_API_KEY_4 }}
BITTENSOR_API_KEY_5: ${{ secrets.BITTENSOR_API_KEY_5 }}
BITTENSOR_API_KEY_6: ${{ secrets.BITTENSOR_API_KEY_6 }}
BITTENSOR_API_KEY_7: ${{ secrets.BITTENSOR_API_KEY_7 }}
BITTENSOR_API_KEY_8: ${{ secrets.BITTENSOR_API_KEY_8 }}
BITTENSOR_API_KEY_9: ${{ secrets.BITTENSOR_API_KEY_9 }}
BITTENSOR_API_KEY_10: ${{ secrets.BITTENSOR_API_KEY_10 }}
SIMPLE_SWAP_API_KEY: ${{ secrets.SIMPLE_SWAP_API_KEY }}
UNISWAP_API_KEY: ${{ secrets.UNISWAP_API_KEY }}
KYBER_CLIENT_ID: ${{ secrets.KYBER_CLIENT_ID }}
SUBWALLET_API: ${{ secrets.SUBWALLET_API }}
BLOCKFROST_API_KEY_MAIN: ${{ secrets.BLOCKFROST_API_KEY_MAIN }}
BLOCKFROST_API_KEY_PREP: ${{ secrets.BLOCKFROST_API_KEY_PREP }}
MELD_API_KEY: ${{ secrets.MELD_API_KEY }}
MELD_WIZARD_KEY: ${{ secrets.MELD_WIZARD_KEY }}
PARASPELL_API_KEY: ${{ secrets.PARASPELL_API_KEY }}
BRANCH_NAME: ${{ github.ref_name }}
run: |
yarn install --immutable | grep -v 'YN0013'
yarn ${{ matrix.step }}
- name: Upload Build to Nextcloud
id: nextcloud_upload
uses: trympet/nextcloud-artifacts-action@v2
with:
name: 'main-build.zip'
path: 'main-build.zip'
nextcloud-url: 'https://file.cdmteck.com'
nextcloud-username: ${{ secrets.NEXTCLOUD_USERNAME }}
nextcloud-password: ${{ secrets.NEXTCLOUD_PASSWORD }}
- name: Upload Firefox Build to Nextcloud
id: nextcloud_upload_firefox
uses: trympet/nextcloud-artifacts-action@v2
with:
name: 'main-build-firefox.zip'
path: 'main-build-firefox.zip'
nextcloud-url: 'https://file.cdmteck.com'
nextcloud-username: ${{ secrets.NEXTCLOUD_USERNAME }}
nextcloud-password: ${{ secrets.NEXTCLOUD_PASSWORD }}
- name: Deploy Webrunner to Netlify
id: netlify_deployment
uses: nwtgck/actions-netlify@v2.0
with:
publish-dir: './packages/web-runner/build'
production-branch: main
github-token: ${{ secrets.GH_PAT }}
deploy-message: ${{ github.event.head_commit.message }}
enable-pull-request-comment: true
enable-commit-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_WEB_RUNNER_SITE_ID }}
timeout-minutes: 1
- name: Notify to Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
username: Extension Worker
title: ${{ github.workflow }}
description: |
Main is completed.
- Extension: ${{ steps.nextcloud_upload.outputs.SHAREABLE_URL }}
- Extension (Firefox): ${{ steps.nextcloud_upload_firefox.outputs.SHAREABLE_URL }}
- Web-runner: ${{ steps.netlify_deployment.outputs.deploy-url }}