Skip to content

Commit 2c09cb7

Browse files
authored
Merge pull request #34 from netfoundry/feature/update_release_workflow
update release workflow
2 parents 3836cb9 + 5f3edfb commit 2c09cb7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,22 @@ on:
55
pull_request:
66
types:
77
- closed
8+
branches:
9+
- main
810

911
jobs:
1012
build:
11-
runs-on: ubuntu-20.04
12-
strategy:
13-
matrix:
14-
python-version: ["3.10"]
13+
runs-on: ubuntu-latest # this is just the host, but the job will run in the container
14+
container: ubuntu:20.04
1515
steps:
1616
- name: Check out code into the directory
1717
uses: actions/checkout@v3
18-
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v3
20-
with:
21-
python-version: ${{ matrix.python-version }}
2218
- name: Install dependencies
2319
run: |
24-
python -m pip install --upgrade pip
20+
# Install required dependencies inside the container
21+
apt-get update
22+
apt-get install -y python3 python3-pip python3-dev wget build-essential
23+
python3 -m pip install --upgrade pip
2524
pip install -r requirements.txt
2625
- name: Use pyinstall to create distribution binary
2726
run: mkdir /opt/netfoundry; pyinstaller -F support_bundle_bootstrap.py --runtime-tmpdir /opt/netfoundry/

0 commit comments

Comments
 (0)