Skip to content

Commit

Permalink
separate build step
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohalt committed Mar 1, 2024
1 parent 24a41ee commit c7e014b
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: nicknovitski/nix-develop@v1
- name: Lint with flake8
Expand All @@ -23,16 +23,12 @@ jobs:
cd src/tests
pytest --version
pytest
release:
name: Create Release
runs-on: ubuntu-latest
environment: release
build:
needs: test
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand All @@ -44,8 +40,18 @@ jobs:
run: |
cd src
python setup.py sdist bdist_wheel
release:
name: Create Release
runs-on: ubuntu-latest
environment: release
needs: build
permissions:
id-token: write
steps:
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi
with:
repository-url: https://test.pypi.org/legacy/-publish@release/v1
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit c7e014b

Please sign in to comment.