fix issue with windows #18
Workflow file for this run
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
on: | |
push: | |
# run only against tags | |
tags: | |
- '*' | |
jobs: | |
release: | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
config: '.goreleaser.linux.yml' | |
- os: macos-latest | |
config: '.goreleaser.darwin.yml' | |
- os: windows-latest | |
config: '.goreleaser.windows.yml' | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22.0' | |
- name: Remove .git folder from submodule on Windows | |
if: runner.os == 'Windows' | |
run: Remove-Item -Recurse -Force tau\.git | |
shell: powershell | |
- name: Remove .git folder from submodule on Linux/macOS | |
if: runner.os != 'Windows' | |
run: rm -rf tau/.git | |
shell: bash | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
version: latest | |
args: release --config ../${{ matrix.config }} | |
workdir: tau | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |