diff --git a/.github/workflows/release-from-tag.yml b/.github/workflows/release-from-tag.yml new file mode 100644 index 0000000..ccfe8de --- /dev/null +++ b/.github/workflows/release-from-tag.yml @@ -0,0 +1,18 @@ +name: Release from Tag + +on: + push: + tags: + - '*' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + - uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 422cafc..b48d18a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Composite GitHub Action that verifies a Maven Build and analyzes the results in Usage example: -``` +```yaml # Build validation name: Build diff --git a/action.yml b/action.yml index ab1055a..b00e5b3 100644 --- a/action.yml +++ b/action.yml @@ -45,19 +45,19 @@ runs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Setup JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: ${{ inputs.java-distribution }} java-version: ${{ inputs.java-version }} cache: maven - name: Cache SonarCloud packages - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar @@ -67,7 +67,7 @@ runs: env: GITHUB_TOKEN: ${{ inputs.github-token }} # Needed to get PR information, if any SONAR_TOKEN: ${{ inputs.sonar-token }} - run: ${{ inputs.maven-executable }} ${{ inputs.maven-verify-args }} ${{ inputs.maven-additional-args }} ${{ inputs.maven-sonar-args }} + run: ${{ inputs.maven-executable }} ${{ inputs.maven-verify-args }} ${{ inputs.maven-additional-args }} ${{ inputs.maven-sonar-args }} shell: bash if: ${{ inputs.os == inputs.sonar-run-on-os && inputs.java-version == inputs.sonar-run-on-java-version && inputs.sonar-token != '' }}