diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a11584c..9db9737 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,15 +13,12 @@ jobs: steps: - uses: actions/checkout@v2 - id: create-repo - run: "echo 'repo=abc' >> $GITHUB_OUTPUT" - - id: echo - run: echo ${{ steps.create-repo.outputs.repo }} + run: "mvn -B --settings mvnsettings.xml nexus-staging:rc-open -DserverId=ossrh -DnexusUrl=https://oss.sonatype.org/ -DstagingProfileId=72c1cc10566951 -DopenedRepositoryMessageFormat='\nrepo=%s' | grep 'repo=' >> $GITHUB_OUTPUT" echo-repo: needs: create-staging-repo + env: + STAGING: ${{ needs.create-staging-repo.outputs.staging-repo }} name: Echo runs-on: ubuntu-latest steps: - - run: echo ${{ needs.create-staging-repo.outputs.staging-repo }} - - run: "echo $STAGING" - env: - STAGING: ${{ needs.create-staging-repo.outputs.staging-repo }} \ No newline at end of file + - run: "echo $STAGING" \ No newline at end of file