type issue uncovered after code re-org #112
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: build | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '*' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build-using-nix: | |
name: Build using nix environment | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v3.1.0 | |
- name: nix, install | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: nix, cache | |
uses: DeterminateSystems/magic-nix-cache-action@v1 | |
- name: check code integrity | |
run: nix develop --command make check | |
- name: check docs | |
run: nix develop --command make docs | |
- name: check REUSE compliance | |
run: nix-shell -p reuse --run "reuse lint" | |
- name: Build Release Package | |
if: ${{ github.event_name == 'release' && github.event.action == 'published' }} | |
run: | | |
echo "Building packge" | |
nix develop --command python -m build | |
- name: Upload Release to PyPI | |
if: ${{ github.event_name == 'release' && github.event.action == 'published' }} | |
run: | | |
echo "Uploading source code" | |
nix develop --command python -m twine upload --verbose --non-interactive --skip-existing -u '__token__' -p ${{ secrets.PYPI_API_TOKEN }} dist/* |