chore:v1.1.0 リリース準備 #10
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: | |
| release-mac: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| cache-dependency-path: backend/go.sum | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build backend (macOS) | |
| run: | | |
| cd backend | |
| GOOS=darwin GOARCH=arm64 go build -o dist/darwin/arm64/backnote-backend ./cmd/main.go | |
| GOOS=darwin GOARCH=amd64 go build -o dist/darwin/x64/backnote-backend ./cmd/main.go | |
| - name: Build frontend | |
| run: npm run build | |
| - name: Build & publish (macOS) | |
| run: npx electron-builder --mac --publish always | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| release-win: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| cache-dependency-path: backend/go.sum | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build backend (Windows) | |
| run: | | |
| cd backend | |
| $env:GOOS="windows"; $env:GOARCH="amd64"; go build -o dist/win32/x64/backnote-backend.exe ./cmd/main.go | |
| - name: Build frontend | |
| run: npm run build | |
| - name: Build & publish (Windows) | |
| run: npx electron-builder --win --publish always | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| release-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| cache-dependency-path: backend/go.sum | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build backend (Linux) | |
| run: | | |
| cd backend | |
| GOOS=linux GOARCH=amd64 go build -o dist/linux/x64/backnote-backend ./cmd/main.go | |
| - name: Build frontend | |
| run: npm run build | |
| - name: Build & publish (Linux) | |
| run: npx electron-builder --linux --publish always | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |