Skip to content

Merge pull request #22 from pixee/ryandens/fix-report-generator-sarif… #25

Merge pull request #22 from pixee/ryandens/fix-report-generator-sarif…

Merge pull request #22 from pixee/ryandens/fix-report-generator-sarif… #25

Workflow file for this run

name: Create Release on Semantic Version Tag
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: "Setup Java"
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: "Build with Maven"
run: mvn -Pci verify
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
- name: "Create release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
target/codetf-*.jar
- name: "Publish to Maven Central"
run: |
mvn \
-Prelease \
-X \
--no-transfer-progress \
--batch-mode \
clean \
deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSPHRASE }}