Add missing GITHUB_TOKEN
(#13)
#29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main CI (Release) | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
permissions: | |
contents: read | |
packages: write | |
uses: ./.github/workflows/build.yml | |
deploy: | |
needs: build | |
permissions: | |
contents: write | |
packages: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '8' | |
distribution: 'corretto' | |
cache: maven | |
- name: Grant execute permission for Maven Wrapper | |
run: chmod +x ./mvnw | |
- name: Bump Version and Release (Maven Release Plugin) | |
run: | | |
echo "Releasing and bumping version..." | |
./mvnw release:prepare release:perform -Darguments=-DskipTests -B | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |