fix: update version to 0.2.0-rc1 in package.json and pyproject.toml #246
Workflow file for this run
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 for Windows | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
include: | |
- env: "production" | |
OPTIMISM_RPC: "https://rpc-gate.autonolas.tech/optimism-rpc/" | |
BASE_RPC: "https://rpc-gate.autonolas.tech/base-rpc/" | |
GNOSIS_RPC: "https://rpc-gate.autonolas.tech/gnosis-rpc/" | |
ETHEREUM_RPC: "https://rpc-gate.autonolas.tech/ethereum-rpc/" | |
arch: "x64" | |
- env: "development" | |
OPTIMISM_RPC: "https://rpc-gate.autonolas.tech/optimism-rpc/" | |
BASE_RPC: "https://rpc-gate.autonolas.tech/base-rpc/" | |
GNOSIS_RPC: "https://virtual.gnosis.rpc.tenderly.co/80ff70d1-71fd-4c9e-9402-913f0c4c58b0" | |
ETHEREUM_RPC: "https://rpc-gate.autonolas.tech/ethereum-rpc/" | |
arch: "x64" | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v3 | |
# Set up Python with setup-python action and add it to PATH | |
- uses: actions/setup-python@v5 | |
id: setup-python | |
with: | |
python-version: "3.10" | |
- name: Add Python to PATH | |
run: | | |
echo "${{ steps.setup-python.outputs.python-path }}" >> $GITHUB_PATH | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
registry-url: "https://registry.npmjs.org" | |
# Configure Yarn network settings for timeout, retries, and reduced concurrency | |
- name: Configure Yarn network settings | |
run: | | |
yarn config set network-timeout 60000 # Set network timeout to 1 minute | |
yarn config set network-retries 10 # Retry up to 10 times | |
yarn config set network-concurrency 2 # Reduce concurrency to 2 connections | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: "1.8.3" | |
virtualenvs-create: true | |
virtualenvs-in-project: false | |
virtualenvs-path: ~/my-custom-path | |
installer-parallel: true | |
# INSTALL PROJECT DEPENDENCIES | |
- name: Restore middleware venv cache | |
id: cache-middleware-venv | |
uses: actions/cache@v3 | |
with: | |
path: ~/my-custom-path | |
key: middleware-venv-${{ runner.os }}-${{ matrix.arch }}-${{ matrix.env }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Install Poetry dependencies (if venv cache miss) | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
run: yarn install:backend | |
# Cache electron node_modules with unique key for each environment and architecture | |
- name: Restore electron node_modules cache | |
id: cache-electron-node-modules | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: electron-node-modules-${{ runner.os }}-${{ matrix.arch }}-${{ matrix.env }}-${{ hashFiles('yarn.lock') }} | |
# Install electron dependencies if cache miss | |
- name: Install electron dependencies | |
if: steps.cache-electron-node-modules.outputs.cache-hit != 'true' | |
run: yarn install | |
# Cache frontend node_modules with unique key for each environment and architecture | |
- name: Restore frontend node_modules cache | |
id: cache-frontend-node-modules | |
uses: actions/cache@v3 | |
with: | |
path: frontend/node_modules | |
key: frontend-node-modules-${{ runner.os }}-${{ matrix.arch }}-${{ matrix.env }}-${{ hashFiles('frontend/yarn.lock') }} | |
# Install frontend dependencies if cache miss | |
- name: Install frontend dependencies | |
if: steps.cache-frontend-node-modules.outputs.cache-hit != 'true' | |
run: yarn install:frontend | |
- name: set env vars to prod.env | |
env: | |
NODE_ENV: ${{ matrix.env }} | |
GNOSIS_RPC: ${{ matrix.GNOSIS_RPC }} | |
BASE_RPC: ${{ matrix.BASE_RPC }} | |
ETHEREUM_RPC: ${{ matrix.ETHEREUM_RPC }} | |
OPTIMISM_RPC: ${{ matrix.OPTIMISM_RPC }} | |
IS_STAGING: ${{ github.ref != 'refs/heads/main' && 'true' || 'false' }} | |
GH_TOKEN: ${{ secrets.github_token}} | |
run: | | |
echo NODE_ENV=$NODE_ENV >> prod.env | |
echo IS_STAGING=$IS_STAGING >> prod.env | |
echo OPTIMISM_RPC=$OPTIMISM_RPC >> prod.env | |
echo BASE_RPC=$BASE_RPC >> prod.env | |
echo ETHEREUM_RPC=$ETHEREUM_RPC >> prod.env | |
echo GNOSIS_RPC=$GNOSIS_RPC >> prod.env | |
cat prod.env | |
echo GH_TOKEN=$GH_TOKEN >> prod.env | |
- run: rm -rf /dist | |
- name: "Build, notarize, publish" | |
run: make build |