Skip to content

Commit 181afd4

Browse files
committed
replace deprecated actions
1 parent 2c90507 commit 181afd4

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,9 @@ jobs:
6565
gsutil -h "Cache-Control:no-cache,max-age=0" cp build/helm/${version}.tgz gs://helm.coder.com/logstream-kube
6666
gsutil -h "Cache-Control:no-cache,max-age=0" cp build/helm/index.yaml gs://helm.coder.com/logstream-kube
6767
68-
- name: Create Release
69-
uses: actions/create-release@v1
70-
id: create_release
71-
env:
72-
GITHUB_TOKEN: ${{ github.token }}
73-
with:
74-
release_name: ${{ steps.version.outputs.version }}
75-
tag_name: ${{ github.ref }}
76-
prerelease: ${{ contains(github.ref, 'rc') }} # Release candidates are marked as pre-releases
77-
78-
- name: Upload Helm Release Asset
79-
uses: actions/upload-release-asset@v1
80-
env:
81-
GITHUB_TOKEN: ${{ github.token }}
68+
- name: Create and upload release
69+
uses: softprops/action-gh-release@v2
8270
with:
83-
upload_url: ${{ steps.create_release.outputs.upload_url }}
84-
asset_path: build/${{ steps.version.outputs.version }}.tgz
85-
asset_name: helm.tar.gz
86-
asset_content_type: application/gzip
71+
token: ${{ github.token }}
72+
files: build/${{ steps.version.outputs.version }}.tgz
73+
prerelease: ${{ contains(github.ref, 'rc') }}

0 commit comments

Comments
 (0)