Skip to content

Commit e5b19c4

Browse files
authored
Merge pull request #1143 from cloudbees-oss/disable-release-workflow
Disable release workflow on main branch
2 parents c37b0ad + d9ae0c8 commit e5b19c4

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88
push:
99
branches:
10-
- main
10+
- main
1111

1212
env:
1313
IMAGE_NAME: cloudbees/smart-tests-cli
@@ -22,11 +22,11 @@ jobs:
2222
outputs:
2323
tag: ${{ steps.run-tagpr.outputs.tag }}
2424
steps:
25-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26-
- id: run-tagpr
27-
uses: Songmu/tagpr@e89d37247ca73d3e5620bf074a53fbd5b39e66b0 # v1.5.1
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
- id: run-tagpr
27+
uses: Songmu/tagpr@e89d37247ca73d3e5620bf074a53fbd5b39e66b0 # v1.5.1
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030

3131
pypi:
3232
needs: tagpr
@@ -35,22 +35,22 @@ jobs:
3535
runs-on: ubuntu-22.04
3636

3737
steps:
38-
- uses: actions/checkout@v4
39-
with:
40-
fetch-depth: 0
41-
- name: Install uv
42-
uses: astral-sh/setup-uv@v3
43-
44-
- name: Build package
45-
run: uv build
46-
- name: Publish to PyPI
47-
run: uv publish --token ${{ secrets.SMART_TESTS_PYPI_API_TOKEN }}
48-
- name: Actions for Discord
49-
uses: Ilshidur/action-discord@0.3.2
50-
env:
51-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
52-
with:
53-
args: 'Smart Tests CLI ${{ needs.tagpr.outputs.tag }} is released! https://github.com/launchableinc/cli/releases/tag/${{ needs.tagpr.outputs.tag }}'
38+
- uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 0
41+
- name: Install uv
42+
uses: astral-sh/setup-uv@v3
43+
44+
- name: Build package
45+
run: uv build
46+
- name: Publish to PyPI
47+
run: uv publish --token ${{ secrets.SMART_TESTS_PYPI_API_TOKEN }}
48+
- name: Actions for Discord
49+
uses: Ilshidur/action-discord@0.3.2
50+
env:
51+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
52+
with:
53+
args: "Smart Tests CLI ${{ needs.tagpr.outputs.tag }} is released! https://github.com/launchableinc/cli/releases/tag/${{ needs.tagpr.outputs.tag }}"
5454

5555
docker:
5656
name: Push Docker image to Docker Hub

.tagpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
#
3939
[tagpr]
4040
vPrefix = true
41-
releaseBranch = main
41+
releaseBranch = v1
4242
versionFile = -
4343
changelog = false

0 commit comments

Comments
 (0)