From c1bebd44bfdaf8b688b907de064569d7bc7b4edc Mon Sep 17 00:00:00 2001 From: Edward Moscardini Date: Tue, 4 Mar 2025 11:25:06 -0500 Subject: [PATCH] update release workflow --- .github/workflows/release.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a3f9e8..84614e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,23 +5,22 @@ on: pull_request: types: - closed + branches: + - main jobs: build: - runs-on: ubuntu-20.04 - strategy: - matrix: - python-version: ["3.10"] + runs-on: ubuntu-latest # this is just the host, but the job will run in the container + container: ubuntu:20.04 steps: - name: Check out code into the directory uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip + # Install required dependencies inside the container + apt-get update + apt-get install -y python3 python3-pip python3-dev wget build-essential + python3 -m pip install --upgrade pip pip install -r requirements.txt - name: Use pyinstall to create distribution binary run: pyinstaller -F router_upgrade_bootstrap.py --runtime-tmpdir /opt/netfoundry/ @@ -30,7 +29,7 @@ jobs: - name: version run: echo "version=$(./dist/router_upgrade -v)" >> $GITHUB_ENV id: version - + - name: Tar bootstrap # tar with previous distibuted name for backwards compatibility run: cd dist; mv router_upgrade_bootstrap zt-upgrade; tar -zcvf router_upgrade_bootstrap.tar.gz zt-upgrade