fix: dir path not found in workflow #28
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 RetroS | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| workflow_dispatch: {} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Go | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: 1.21.3 | |
| - name: Test | |
| run: go test -v ./... | |
| - name: Build Go binary for Linux | |
| run: go build -o bin/linux/retros ./cmd/retros | |
| - name: Build Go binary for OSX | |
| run: GOOS=darwin GOARCH=arm64 go build -o bin/mac/osx-retros ./cmd/retros | |
| - name: Build Go binary for Windows | |
| run: GOOS=windows go build -o bin/windows/retros.exe ./cmd/retros | |
| - name: Create Release | |
| id: create_release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: | | |
| bin/linux/retros | |
| bin/mac/osx-retros | |
| bin/windows/retros.exe | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Release URL | |
| run: echo "Uploaded release to ${{ steps.create_release.outputs.upload_url }}" |