Skip to content

ci: fix starting version (#7) #4

ci: fix starting version (#7)

ci: fix starting version (#7) #4

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions:
contents: read
packages: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@f2acddfb5195534d487896a656232b016a682f3c # v1.9.0
with:
app-id: '${{ secrets.APP_ID }}'
private-key: '${{ secrets.AUTOMATION_KEY }}'
- uses: google-github-actions/release-please-action@v4
with:
token: '${{ steps.generate_token.outputs.token }}'
config-file: release-please.json
manifest-file: .release-please-manifest.json
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Setup Buf
uses: bufbuild/buf-setup-action@382440cdb8ec7bc25a68d7b4711163d95f7cc3aa
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK
uses: actions/setup-java@5896cecc08fd8a1fbdfaf517e29b571164b031f7
with:
java-version: '20'
distribution: 'adopt'
server-id: github
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'