File tree Expand file tree Collapse file tree 1 file changed +18
-19
lines changed
Expand file tree Collapse file tree 1 file changed +18
-19
lines changed Original file line number Diff line number Diff line change 1515jobs :
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
You can’t perform that action at this time.
0 commit comments