Update README: Adding screenshots #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
| permissions: | |
| contents: write | |
| packages: write | |
| name: Build and Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.24' | |
| - name: Build binaries | |
| run: | | |
| mkdir -p dist | |
| GOOS=linux GOARCH=amd64 go build -o dist/spaceinvaders-game-linux main.go | |
| GOOS=windows GOARCH=amd64 go build -o dist/spaceinvaders-game-windows.exe main.go | |
| GOOS=darwin GOARCH=amd64 go build -o dist/spaceinvaders-game-mac main.go | |
| - name: Create Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| artifacts: "dist/*" | |
| tag: ${{ github.ref }} | |