Release #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Download VSIX 2017 | |
uses: actions/[email protected] | |
with: | |
name: ExtensionManager2017.vsix | |
- name: Download VSIX 2019 | |
uses: actions/[email protected] | |
with: | |
name: ExtensionManager2019.vsix | |
- name: Download VSIX 2022 | |
uses: actions/[email protected] | |
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" |