-
Notifications
You must be signed in to change notification settings - Fork 18
62 lines (50 loc) · 1.57 KB
/
Release.yml
File metadata and controls
62 lines (50 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release
on:
workflow_dispatch:
permissions:
contents: write
jobs:
build:
uses: ./.github/workflows/Build.yml
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkup code
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Download VSIX 2017
uses: actions/download-artifact@v4.1.7
with:
name: ExtensionManager2017.vsix
- name: Download VSIX 2019
uses: actions/download-artifact@v4.1.7
with:
name: ExtensionManager2019.vsix
- name: Download VSIX 2022
uses: actions/download-artifact@v4.1.7
with:
name: ExtensionManager2022.vsix
- name: Unzip VSIX Archives
shell: pwsh
run: |
Get-ChildItem . -Filter *.zip | ForEach-Object {
Expand-Archive -LiteralPath $_.FullName -DestinationPath .
}
- name: Create version tag
run: |
git config user.name "GitHub Action"
git config user.email "<>"
git tag v${{ needs.build.outputs.version }}
git push origin v${{ needs.build.outputs.version }}
- name: Create Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create v${{ needs.build.outputs.version }}
- name: Upload Release Binaries
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload v${{ needs.build.outputs.version }} "ExtensionManager2017.vsix" "ExtensionManager2019.vsix" "ExtensionManager2022.vsix"