Merge pull request #22 from rh-amarin/avoid-extends #2
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: Create Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Install tsp | |
| run: npm install -g @typespec/compiler@1.6 | |
| - name: Build Core schema | |
| run: ./build-schema.sh core | |
| - name: Build GCP schema | |
| run: ./build-schema.sh gcp | |
| - name: Prepare release assets | |
| run: | | |
| cp schemas/core/openapi.yaml core-openapi.yaml | |
| cp schemas/gcp/openapi.yaml gcp-openapi.yaml | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| core-openapi.yaml | |
| gcp-openapi.yaml | |
| draft: false | |
| prerelease: false | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |