Require BOOTP chaddr match for host→VM DHCP responses (#192) #7
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: | |
| - "*" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| release: | |
| name: Release | |
| if: github.event_name == 'push' && github.ref_type == 'tag' | |
| runs-on: macos-26 | |
| environment: publish | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Install Rust | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal | |
| echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" | |
| - name: Install release targets | |
| run: rustup target add aarch64-apple-darwin x86_64-apple-darwin | |
| - name: Create release app token for this repo | |
| id: app-token | |
| uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1 | |
| with: | |
| app-id: ${{ secrets.RELEASE_APP_ID }} | |
| private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} | |
| permission-contents: write | |
| - name: Create release app token for homebrew-tools | |
| id: tap-token | |
| uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1 | |
| with: | |
| app-id: ${{ secrets.RELEASE_APP_ID }} | |
| private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} | |
| owner: openai | |
| repositories: homebrew-tools | |
| permission-contents: write | |
| permission-pull-requests: write | |
| - name: Release | |
| uses: goreleaser/goreleaser-action@v7 | |
| with: | |
| distribution: goreleaser-pro | |
| version: "~> v2" | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.tap-token.outputs.token }} | |
| GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | |
| snapshot: | |
| name: Release (Dry Run) | |
| if: github.event_name == 'workflow_dispatch' | |
| runs-on: macos-26 | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Install Rust | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal | |
| echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" | |
| - name: Install release targets | |
| run: rustup target add aarch64-apple-darwin x86_64-apple-darwin | |
| - name: Release dry run | |
| uses: goreleaser/goreleaser-action@v7 | |
| with: | |
| distribution: goreleaser-pro | |
| version: "~> v2" | |
| args: release --skip=publish --snapshot --clean | |
| - name: Upload dry-run artifacts | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: softnet-snapshot | |
| path: dist/** |