Skip to content

Commit

Permalink
"update buildfile"
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvalal committed Nov 11, 2024
1 parent 1ed39ae commit 3b45b38
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: Build and Release

on:
push:
branches:
- master

branches: ["*"]
tags: ["v*"]

jobs:
build-wheel:
Expand All @@ -20,6 +19,7 @@ jobs:
- ["cp311", '3.11']
- ["cp312", '3.12']
runs-on: ${{ matrix.buildplat[0] }}
if: startsWith(github.ref, 'refs/tags/v')

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -64,6 +64,7 @@ jobs:
build-sdist:
name: Build source distribution
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -97,6 +98,7 @@ jobs:
# - build-wheel
# - build-sdist
# runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags/v')
# environment:
# name: pypi
# url: https://pypi.org/p/pyensmallen
Expand All @@ -115,6 +117,7 @@ jobs:
upload_release:
needs: [build-wheel, build-sdist]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
steps:
Expand Down

0 comments on commit 3b45b38

Please sign in to comment.