Skip to content

chore(deps): update actions/setup-java action to v4.2.0 #194

chore(deps): update actions/setup-java action to v4.2.0

chore(deps): update actions/setup-java action to v4.2.0 #194

Workflow file for this run

name: Test and release
on:
push:
tags: ['*']
branches-ignore:
- 'autodelivery**'
- 'bump-**'
- 'renovate/**'
paths-ignore:
- 'CHANGELOG.md'
- 'LICENSE'
- 'README.md'
- 'renovate.json'
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Test the action
uses: ./
with:
working-dir: "./test/"
java-version: "17.0.3"
pgp-secret: ${{ secrets.PGP_SECRET }}
pgp-passphrase: ${{ secrets.PGP_PASSPHRASE }}
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
github-token: ${{ secrets.GITHUB_TOKEN }}
release:
name: Release
needs: [test]
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha' || github.ref == 'refs/heads/beta')
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: release Action
run: |
npm install
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}