Skip to content

Commit

Permalink
Publish new Javadoc on release
Browse files Browse the repository at this point in the history
  • Loading branch information
cowwoc committed Oct 30, 2024
1 parent c1c999f commit 54245d3
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/deploy_to_maven_central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
TAG=$(git describe --tag --abbrev=0)
echo "TAG=${TAG}" >> "$GITHUB_OUTPUT"
echo "VERSION=${TAG#"release-"}" >> "$GITHUB_OUTPUT"
echo "TAG=${TAG}"
- name: Look up staging profile id
id: request-profile-id
Expand Down Expand Up @@ -125,14 +126,13 @@ jobs:
- name: Cache Dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository/*
path: ~/.m2/repository/*
key: "${{ runner.OS }}-maven-${{ hashFiles('**/pom.xml') }}"

- name: Test build
run: ./mvnw --batch-mode -V -e verify

# Escape exclamation mark on bash: https://stackoverflow.com/a/27177197/14731
# Must quote exclamation mark on bash: https://stackoverflow.com/a/27177197/14731
- name: Deploy to Maven Central
run: >
./mvnw --batch-mode -V -e -pl '!dropwizard,!jersey'
Expand All @@ -151,7 +151,9 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 23
java-version: |
8
23
- name: Generate Javadoc
run: |
Expand All @@ -163,7 +165,6 @@ jobs:
git checkout gh-pages
echo "INITIAL_GH_PAGES_POSITION=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
git add "${{ steps.create-tag.outputs.VERSION }}/docs/api"
git tag -a ${{ steps.create-tag.outputs.TAG }} -m "Released version ${{ steps.create-tag.outputs.VERSION }}"
git push
close-release:
Expand Down Expand Up @@ -260,10 +261,4 @@ jobs:
git ${{ github.ref_type }} -f ${{ github.ref_name }}
fi
git push -f origin ${{ github.ref_name }}
fi
- name: Delete gh-pages' tag
if: needs.open-release.outputs.INITIAL_GH_PAGES_POSITION != ''
run: |
git push --delete origin ${{ needs.open-release.outputs.TAG }}
git push
fi

0 comments on commit 54245d3

Please sign in to comment.