summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavagePeanut <sourcehut@lazytapir.com>2023-08-02 17:50:59 -0500
committerSavagePeanut <sourcehut@lazytapir.com>2023-08-02 17:50:59 -0500
commit3d6340c16c3e83e92dd1423491ab6c77e2cd74e2 (patch)
treeec57ba37e34245957e3245c2b767d8f06a7d6875
parentdf8aaf093dcda522723d1320d4bfd95923236881 (diff)
make all jobs only run on tagged version
-rw-r--r--.github/workflows/CI.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 49ebda6..783238b 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -21,6 +21,7 @@ permissions:
jobs:
linux:
runs-on: ubuntu-latest
+ if: "startsWith(github.ref, 'refs/tags/')"
strategy:
matrix:
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
@@ -44,6 +45,7 @@ jobs:
windows:
runs-on: windows-latest
+ if: "startsWith(github.ref, 'refs/tags/')"
strategy:
matrix:
target: [x64, x86]
@@ -67,6 +69,7 @@ jobs:
macos:
runs-on: macos-latest
+ if: "startsWith(github.ref, 'refs/tags/')"
strategy:
matrix:
target: [x86_64, aarch64]
@@ -89,6 +92,7 @@ jobs:
sdist:
runs-on: ubuntu-latest
+ if: "startsWith(github.ref, 'refs/tags/')"
steps:
- uses: actions/checkout@v3
- name: Build sdist