diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1e6c0e045..68238492d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -2,19 +2,19 @@ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven name: Java CI with Maven - on: [push, pull_request] - jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Maven - run: mvn -B package --file pom.xml + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn -B package --file pom.xml + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} + run: npx semantic-release diff --git a/.releaserc.yml b/.releaserc.yml new file mode 100644 index 000000000..b2ef4e4a4 --- /dev/null +++ b/.releaserc.yml @@ -0,0 +1,9 @@ +branches: + - 'develop' +plugins: + - '@semantic-release/commit-analyzer' + - '@semantic-release/release-notes-generator' + - - '@semantic-release/github' + - assets: + - path: target/wise.war + label: Build