Skip to content

Commit e55da2e

Browse files
committed
chore: Update release workflow
1 parent 3506715 commit e55da2e

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,37 @@ on:
1515
jobs:
1616
build:
1717
uses: ./.github/workflows/build.yml
18+
1819
release:
19-
permissions: write-all
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
2023
needs:
2124
- build
22-
runs-on: ubuntu-latest
2325

24-
if: ${{ github.ref_name == 'master' }}
2526
steps:
2627
- name: Checkout repository
2728
uses: actions/checkout@v4
2829

29-
- name: Download artifact
30-
uses: dawidd6/action-download-artifact@v6
30+
- name: Download Build Artifacts
31+
uses: actions/download-artifact@v4
3132
with:
3233
name: encodex
34+
path: .
3335

34-
- name: Create release
35-
id: create_release
36-
uses: actions/create-release@latest
36+
- name: Rename Build Artifact
37+
run: mv ./encodex.vsix encodex-${{ github.event.inputs.build-ver }}.vsix
38+
39+
- name: Create Release
40+
uses: softprops/action-gh-release@v2
3741
env:
3842
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3943
with:
4044
tag_name: ${{ github.event.inputs.build-ver }}
41-
release_name: Release ${{ github.event.inputs.build-ver }}
42-
body_path: ./CHANGELOG.md
45+
name: Release ${{ github.event.inputs.build-ver }}
46+
files: |
47+
./encodex-${{ github.event.inputs.build-ver }}.vsix
48+
draft: false
4349
prerelease: false
44-
45-
- name: Upload Artifact
46-
uses: actions/upload-release-asset@v1
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
with:
50-
upload_url: ${{ steps.create_release.outputs.upload_url }}
51-
asset_path: ./encodex.vsix
52-
asset_name: encodex-${{ github.event.inputs.build-ver }}.vsix
50+
make_latest: true
51+
body_path: ./CHANGELOG.md

0 commit comments

Comments
 (0)