chore: release v2.3.0 #1
Workflow file for this run
This file contains hidden or 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: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Validate tag format | |
| run: | | |
| if [[ ! "$GITHUB_REF_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | |
| echo "Tag '$GITHUB_REF_NAME' does not match vX.Y.Z format" | |
| exit 1 | |
| fi | |
| env: | |
| GITHUB_REF_NAME: ${{ github.ref_name }} | |
| - name: Package Toolkit | |
| run: | | |
| mkdir -p dist | |
| zip -r dist/vscode-copilot-sync.zip scripts/ configure.ps1 | |
| - name: Create release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| name: vscode-copilot-sync ${{ github.ref_name }} | |
| body: | | |
| See [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/${{ github.ref_name }}/CHANGELOG.md) for full release notes. | |
| files: | | |
| dist/vscode-copilot-sync.zip | |
| fail_on_unmatched_files: true | |
| draft: false | |
| prerelease: false |