docs: fix -remote paths in Complete Examples to use // prefix #19
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: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 'stable' | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Set version from tag | |
| run: | | |
| $tag = "${{ github.ref_name }}" | |
| $content = "package main`n`nvar (`n`tversion = `"$tag`"`n)`n" | |
| Set-Content -Path version.go -Value $content -Encoding UTF8 -NoNewline | |
| - name: Build | |
| run: go build -ldflags="-s -w" -o win-sshpass.exe . | |
| - name: Create zip package | |
| run: | | |
| $tag = "${{ github.ref_name }}" | |
| Compress-Archive -Path win-sshpass.exe,README.md,README.zh-CN.md,README.zh-TW.md,README.ja.md -DestinationPath "win-sshpass-$tag.zip" | |
| - name: Install WiX Toolset | |
| run: | | |
| dotnet tool install --global wix | |
| wix eula accept wix7 | |
| - name: Build MSI | |
| run: wix build -arch x64 -d Version=${{ github.ref_name }} -out win-sshpass-${{ github.ref_name }}.msi .github/workflows/win-sshpass.wxs | |
| - name: Create release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: | | |
| win-sshpass-*.zip | |
| win-sshpass-*.msi | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |