Skip to content

Commit 67634a7

Browse files
committed
fix github release
1 parent efc3940 commit 67634a7

File tree

3 files changed

+13
-21
lines changed

3 files changed

+13
-21
lines changed

.github/workflows/pipeline.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- '*'
77

8+
# for the publish job
9+
permissions:
10+
contents: write
11+
812
jobs:
913
verify_version:
1014
runs-on: ubuntu-latest
@@ -50,7 +54,8 @@ jobs:
5054
steps:
5155
- uses: actions/checkout@v4
5256
- name: Publish
53-
env:
54-
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
55-
run: |
56-
/bin/bash -c "./tasks publish"
57+
uses: softprops/action-gh-release@v2
58+
with:
59+
repository: kudulab/docker-ops
60+
token: ${{ secrets.MY_GITHUB_TOKEN }}
61+
files: src/docker-ops

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 2.1.1 (2025-Apr-23)
2+
3+
* fix github release
4+
15
### 2.1.0 (2025-Apr-23)
26

37
* add an option to set docker platform while building a docker image (https://docs.docker.com/reference/cli/docker/buildx/build/#platform)

tasks

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,6 @@ case "${command}" in
3939
releaser::verify_release_ready
4040
releaser::git_tag_from_changelog
4141
;;
42-
publish)
43-
# publish the just released version
44-
VERSION=$(releaser::get_last_git_tagged_version)
45-
releaser::prepare_github_release_bin
46-
$GHRELEASE_BIN release \
47-
--user kudulab \
48-
--repo docker-ops \
49-
--tag $VERSION \
50-
--name $VERSION
51-
52-
$GHRELEASE_BIN upload \
53-
--user kudulab \
54-
--repo docker-ops \
55-
--tag $VERSION \
56-
--name "docker-ops" \
57-
--file src/docker-ops
58-
;;
5942
*)
6043
echo "Invalid command: '${command}'"
6144
exit 1

0 commit comments

Comments
 (0)