-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5256459
commit b66a0fd
Showing
4 changed files
with
8 additions
and
224 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,9 @@ on: | |
push: | ||
branches: [ release/** ] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
@@ -27,26 +30,15 @@ jobs: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
cache: gradle | ||
|
||
- env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
export REMOTE="https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY.git" | ||
git remote set-url origin "$REMOTE" | ||
git clone "$REMOTE" --branch gh-pages build/gh-pages | ||
./gradlew build | ||
./gradlew -x build buildSite | ||
ls -AlF site/build/site | ||
- env: | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | ||
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||
run: ./gradlew --no-daemon -x test release | ||
|
||
- run: | | ||
cp -rf site/build/site/* build/gh-pages/ | ||
cd build/gh-pages | ||
git add --all | ||
git commit -m "Publishing to gh-pages" | ||
git push origin gh-pages | ||
push_site: | ||
uses: hexagontk/hexagon/.github/workflows/site.yml@develop | ||
needs: publish | ||
with: | ||
options: -P pushSite=true |
This file was deleted.
Oops, something went wrong.