More logging #23
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: "Publish" | |
on: | |
workflow_dispatch: | |
branches: | |
- main | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.gitignore' | |
- '**/*.gitattributes' | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**/*.gitignore' | |
- '**/*.gitattributes' | |
- '**/*.yaml' | |
jobs: | |
build: | |
name: Build and Test | |
uses: ./.github/workflows/_build.yaml | |
publish: | |
needs: build | |
environment: | |
name: production | |
url: https://marketplace.visualstudio.com/items?itemName=TimHeuer.AspireManifestGen | |
name: Publish | |
runs-on: windows-2022 | |
permissions: | |
contents: write | |
env: | |
VERSION: ${{ needs.build.outputs.version }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Disable VS Telemetry | |
run: | | |
reg add HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\Telemetry /v TurnOffSwitch /t REG_DWORD /d 1 /f | |
- name: Download Package artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: ${{ github.event.repository.name }}.vsix | |
- name: Tag and Release | |
id: tag_release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body: Release ${{ env.VERSION }} | |
tag_name: ${{ env.VERSION }} | |
generate_release_notes: true | |
files: | | |
**/*.vsix | |
- name: Upload to VsixGallery | |
uses: timheuer/openvsixpublish@v1 | |
with: | |
vsix-file: ${{ github.event.repository.name }}.vsix | |
- name: Publish extension to Marketplace | |
#if: ${{ contains(github.event.head_commit.message, '[release]') }} | |
continue-on-error: true # remove this after VS bug fixed | |
uses: cezarypiatek/[email protected] | |
with: | |
extension-file: '${{ github.event.repository.name }}.vsix' | |
publish-manifest-file: 'vs-publish.json' | |
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }} | |