Skip to content

Commit

Permalink
Fix release. (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jefequien authored Mar 12, 2024
1 parent 5ef987a commit bc343d5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/core_code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@ on:
pull_request:
branches: [ "main" ]

# Only allow one build per branch at a time except on main.
# This takes advantage of the lazy evaluation of the "||" operator. When the ref is main
# the run_number will be included in the concurrency group making it unique but when
# the ref is not main it will evaluate to false and the second half of the operator is
# never evaluated, so the group is the same for all runs on that pr/branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || github.run_number }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ jobs:
- name: build release distributions
run: |
# NOTE: put your own distribution build steps here.
python -m build
- name: upload dists
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

pypi-publish:
runs-on: ubuntu-latest
needs:
Expand Down

0 comments on commit bc343d5

Please sign in to comment.