Skip to content

Commit

Permalink
Merge pull request #65 from qognitive/feature/single-release-build
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastroy authored Oct 7, 2024
2 parents cfb5fde + 5062db8 commit 84c0641
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ on:
pull_request:
branches:
- main
release:
types:
- published
permissions:
id-token: write # This is required for requesting the JWT
jobs:
main-build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -41,6 +36,3 @@ jobs:
env:
BUILD_OS: ${{ matrix.os }}
CXX: ${{ matrix.compiler }}
- name: Publish release distributions to PyPI
if: github.event.release
uses: pypa/gh-action-pypi-publish@release/v1
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# the name of this file must match the one in pypi.org config
name: Build/Test/Release
on:
release:
types:
- published
permissions:
id-token: write # This is required for requesting the JWT
jobs:
main-build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
compiler: [clang++-17]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Main Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Main Build
uses: ./.github/actions/build
env:
BUILD_OS: ${{ matrix.os }}
CXX: ${{ matrix.compiler }}
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 84c0641

Please sign in to comment.