feat: added templates for Java + Spring. added new params for generation #104
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: "pre-release" | |
| on: | |
| push: | |
| tags: | |
| - 'dev_*+' | |
| jobs: | |
| pre-release-on-mac: | |
| name: "Pre Release For MacOS" | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Run tests | |
| run: swift test -v | |
| - name: Make Release Buid | |
| run: make executable | |
| - name: Check binary | |
| run: | | |
| ./Binary create-config -f swift -t linter | |
| ./Binary lint -c .surfgen.linter.yaml Tests/Common/RefToAlias/api.yaml | |
| - name: Archive | |
| run: | | |
| mv Binary surfgen | |
| zip surfgen_macos_x64.zip surfgen | |
| zip -r templates.zip Templates | |
| - uses: "ncipollo/release-action@v1" | |
| with: | |
| prerelease: true | |
| artifacts: "*.zip" | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| replacesArtifacts: true | |
| bodyFile: CHANGELOG.md | |
| allowUpdates: true | |
| pre-release-on-linux: | |
| name: "Pre Release For Ubuntu" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: sersoft-gmbh/swifty-linux-action@v1 | |
| with: | |
| release-version: 5.3.3 | |
| - uses: actions/checkout@v2 | |
| - name: Run tests | |
| run: swift test -v | |
| - name: Make Release Buid | |
| run: make executable | |
| - name: Check binary | |
| run: | | |
| ./Binary create-config -f swift -t linter | |
| ./Binary lint -c .surfgen.linter.yaml Tests/Common/RefToAlias/api.yaml | |
| - name: Archive | |
| run: | | |
| mv Binary surfgen | |
| zip surfgen_ubuntu_x64.zip surfgen | |
| - uses: "ncipollo/release-action@v1" | |
| with: | |
| prerelease: true | |
| artifacts: "*.zip" | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| replacesArtifacts: true | |
| bodyFile: CHANGELOG.md | |
| allowUpdates: true |