add functions to list models defined and services using models #108
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*' | |
| workflow_dispatch: | |
| jobs: | |
| binary: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| os: [linux, darwin, windows] | |
| arch: [amd64, arm64] | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@v4 | |
| - | |
| name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - run: go version | |
| - | |
| name: Build | |
| run: | | |
| GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} make build | |
| ls -al bin/ | |
| - | |
| name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: compose-spec-${{ matrix.os }}-${{ matrix.arch }} | |
| path: ./bin/* | |
| if-no-files-found: error | |
| release: | |
| permissions: | |
| contents: write # to create a release (ncipollo/release-action) | |
| runs-on: ubuntu-latest | |
| needs: | |
| - binary | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@v4 | |
| - | |
| name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: bin/ | |
| merge-multiple: true | |
| - | |
| name: GitHub Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| artifacts: bin/* | |
| generateReleaseNotes: true | |
| draft: true | |
| token: ${{ secrets.GITHUB_TOKEN }} |