Skip to content

remove publish

remove publish #2

Workflow file for this run

name: CD
on:
push:
branches:
- main
jobs:
release-please:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
tag_name: ${{ steps.release.outputs.tag_name }}
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: maven
call-build-maven:
needs: release-please
name: build with Maven
uses: ./.github/workflows/maven_build.yml

Check failure on line 27 in .github/workflows/cd.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/cd.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/cd.yaml" -> "./.github/workflows/maven_build.yml" : failed to fetch workflow: workflow was not found.
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs:
- release-please
- call-build-maven
steps:
- name: checkout code
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'corretto'
cache: 'maven'
- name: Publish to GitHub Packages Apache Maven
if: ${{needs.release-please.outputs.release_created}}
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}