Merge pull request #10 from isontheline/semantic-version-gradle #24
This file contains 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: Build dRAGon Project | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: microsoft | |
java-version: 17 | |
- uses: gradle/actions/setup-gradle@v3 | |
- name: Test dRAGon | |
run: gradle npmInstall npmLint test | |
- name: Create Release | |
run: gradle createRelease | |
- name: Build dRAGon | |
run: gradle build | |
- name: Push Release | |
if: github.ref == 'refs/heads/main' | |
run: gradle pushRelease |