feat(database support): Close version and update changelog for versio… #16
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: Main workflow | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'JenAI/**' | |
| - '.github/workflows/main-workflow.yml' | |
| jobs: | |
| build_and_release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out source code | |
| uses: actions/checkout@v3 | |
| - name: Set up Java | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '21' | |
| distribution: 'corretto' | |
| - name: Build | |
| run: cd JenAI && mvn package | |
| - name: Prepare for releasing | |
| run: cp JenAI/target/*.jar ./JenAI.jar | |
| - name: Generate tag for new version | |
| id: tag_version | |
| uses: mathieudutour/github-tag-action@v6.1 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: JenAI.jar | |
| name: JenAI ${{ steps.tag_version.outputs.new_tag }} | |
| tag_name: ${{ steps.tag_version.outputs.new_tag }} |