Skip to content
Snippets Groups Projects
Verified Commit 5cb57d47 authored by James Graham's avatar James Graham
Browse files

ci: add job to build release artifacts

parent b0723c41
Branches
No related tags found
No related merge requests found
......@@ -26,3 +26,35 @@ jobs:
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build
build-release-artifacts:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.8"
- name: Install prerequisites
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install .
- name: Build distributable
run: |
pyinstaller pycgtool/__main__.py --name pycgtool-${{ matrix.os }} --onefile --collect-data mdtraj --hidden-import xdrlib
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifact: dist/pycgtool-${{ matrix.os }}
token: ${{ secrets.GITHUB_TOKEN }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment