forked from kapicorp/kapitan
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.12 KB
/
pex-build-upload.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
name: PEX Build and Upload
on:
workflow_run:
workflows:
- Upload Python Package
types:
- completed
jobs:
pex_build_publish:
if: false # disable as this is not working with multiple python versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.17
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pex
- name: Build Pex
run: |-
mkdir -p dist
pex .[gojsonnet] -r requirements.txt --python-shebang='#!/usr/bin/env python3' --python=python3.8 --python=python3.9 --python=python3.10 -m kapitan -o dist/kapitan.linux-x86_64.pex
- name: Add linux-x86_64 pex to assets
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/kapitan.linux-x86_64.pex