Skip to content

Commit 5bb711b

Browse files
committed
fix: replace depricated gh action
1 parent 26e8efa commit 5bb711b

1 file changed

Lines changed: 2 additions & 20 deletions

File tree

.github/workflows/release.yaml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22

33
on:
44
release:
5-
types: [ "created" ]
5+
types: [ "created", "edited" ]
66

77
jobs:
88
build:
@@ -31,25 +31,7 @@ jobs:
3131
tar -czf observer-${{ matrix.goarch }}-$TAG.tar.gz observer-${{ matrix.goarch }}
3232
3333
- name: Upload artifact
34-
uses: actions/upload-artifact@v3
34+
uses: softprops/action-gh-release@v2
3535
with:
3636
name: observer-${{ matrix.goarch }}-${GITHUB_REF#refs/tags/}.tar.gz
3737
path: observer-${{ matrix.goarch }}-${GITHUB_REF#refs/tags/}.tar.gz
38-
39-
release:
40-
needs: build
41-
runs-on: ubuntu-latest
42-
steps:
43-
- name: Download artifacts
44-
uses: actions/download-artifact@v3
45-
with:
46-
path: .
47-
48-
- name: Create GitHub Release
49-
uses: softprops/action-gh-release@v2
50-
if: github.ref_type == 'tag'
51-
with:
52-
files: |
53-
observer-amd64-${GITHUB_REF#refs/tags/}.tar.gz
54-
observer-arm64-${GITHUB_REF#refs/tags/}.tar.gz
55-

0 commit comments

Comments
 (0)