Redesign desktop web dashboard UI with cyber-minimalist Railway/Aerop… #14
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-and-release: | |
| name: Build & Publish Release | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| cache: true | |
| - name: Run Unit Tests | |
| run: go test -v ./... | |
| - name: Build Windows Executables | |
| shell: pwsh | |
| run: | | |
| New-Item -ItemType Directory -Path dist -Force | |
| $env:GOOS="windows"; $env:GOARCH="amd64"; go build -ldflags="-s -w" -o dist/phpvm-windows-amd64.exe . | |
| $env:GOOS="windows"; $env:GOARCH="arm64"; go build -ldflags="-s -w" -o dist/phpvm-windows-arm64.exe . | |
| Copy-Item dist/phpvm-windows-amd64.exe dist/phpvm.exe | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| dist/phpvm.exe | |
| dist/phpvm-windows-amd64.exe | |
| dist/phpvm-windows-arm64.exe | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |