Blue Coin Tracking and SHine Tracking + Update to 0.3.6 #55
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: Build and Release | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| - "develop" | |
| jobs: | |
| build: | |
| name: Build & Bundle | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.21' | |
| # 1. Build for Linux | |
| - name: Build Linux Binary | |
| run: | | |
| GOOS=linux GOARCH=amd64 go build -o sms-tracker . | |
| # 2. Build for Windows | |
| - name: Build Windows Binary | |
| run: | | |
| GOOS=windows GOARCH=amd64 go build -o sms-tracker.exe . | |
| # 3. Upload Raw Binaries | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sms-tracker-binaries | |
| path: | | |
| sms-tracker | |
| sms-tracker.exe | |
| release: | |
| name: Create Release | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| if: github.ref == 'refs/heads/main' | |
| steps: | |
| - name: Download Artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: sms-tracker-binaries | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: v0.0.${{ github.run_number }} | |
| name: Release v0.0.${{ github.run_number }} | |
| draft: true | |
| prerelease: false | |
| files: | | |
| sms-tracker | |
| sms-tracker.exe |