Merge pull request #657 from meshery/copilot/sub-pr-656 #198
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: Generate Artifacts from schemas | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - '.github/**' | |
| - README.md | |
| jobs: | |
| build-artifacts: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| with: | |
| ref: 'master' | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25.5' # match your local version | |
| - name: Install Redocly | |
| uses: actions/setup-node@v6 | |
| - run: | | |
| npm i | |
| npm i -g @redocly/cli@latest | |
| go version | |
| go install github.com/oapi-codegen/oapi-codegen/v2/cmd/[email protected] | |
| echo "$HOME/go/bin" >> $GITHUB_PATH # ✅ Add oapi-codegen to PATH | |
| - name: Run Make build | |
| shell: bash | |
| run: | | |
| make build | |
| - name: Pull changes from remote | |
| run: git pull origin master | |
| - uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: Generate build artifacts from schemas | |
| commit_options: '--signoff' | |
| branch: master | |
| commit_user_name: meshery | |
| commit_user_email: [email protected] | |
| commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> |