-
Notifications
You must be signed in to change notification settings - Fork 7
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
5ffce9e
commit 1c1da18
Showing
1 changed file
with
24 additions
and
24 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -49,30 +49,30 @@ jobs: | |
branch: ${{ github.ref }} | ||
github_token: ${{ secrets.GITHUB_TOKEN}} | ||
#Build manual with right version | ||
- name: build manual | ||
id: manual | ||
run: | | ||
find ./manual/src/main/paradox -type f -name '*.md' | xargs node ./scripts/version.js ${{ github.event.inputs.lastVersion }} ${{ github.event.inputs.releaseversion }} | ||
find ./docs -type f -name '*.html' -d 1 | xargs node ./scripts/version.js ${{ github.event.inputs.lastVersion }} ${{ github.event.inputs.releaseversion }} | ||
cd manual | ||
sbt "release with-defaults release-version ${{ github.event.inputs.releaseversion }}" | ||
cd .. | ||
sh ./scripts/build.sh manual | ||
echo "diff=$(git diff --numstat | wc -l)" >> $GITHUB_OUTPUT | ||
cd .. | ||
- name: Commit manual | ||
if: steps.manual.outputs.diff != '0' | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "daikoku-github-actions" | ||
git add --all | ||
git commit -am "Update documentation before release" | ||
- name: Push manual | ||
uses: ad-m/github-push-action@master | ||
if: steps.manual.outputs.diff != '0' | ||
with: | ||
branch: ${{ github.ref }} | ||
github_token: ${{ secrets.GITHUB_TOKEN}} | ||
# - name: build manual | ||
# id: manual | ||
# run: | | ||
# find ./manual/src/main/paradox -type f -name '*.md' | xargs node ./scripts/version.js ${{ github.event.inputs.lastVersion }} ${{ github.event.inputs.releaseversion }} | ||
# find ./docs -type f -name '*.html' -d 1 | xargs node ./scripts/version.js ${{ github.event.inputs.lastVersion }} ${{ github.event.inputs.releaseversion }} | ||
# cd manual | ||
# sbt "release with-defaults release-version ${{ github.event.inputs.releaseversion }}" | ||
# cd .. | ||
# sh ./scripts/build.sh manual | ||
# echo "diff=$(git diff --numstat | wc -l)" >> $GITHUB_OUTPUT | ||
# cd .. | ||
# - name: Commit manual | ||
# if: steps.manual.outputs.diff != '0' | ||
# run: | | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "daikoku-github-actions" | ||
# git add --all | ||
# git commit -am "Update documentation before release" | ||
# - name: Push manual | ||
# uses: ad-m/github-push-action@master | ||
# if: steps.manual.outputs.diff != '0' | ||
# with: | ||
# branch: ${{ github.ref }} | ||
# github_token: ${{ secrets.GITHUB_TOKEN}} | ||
# release sbt (with auto commit tag) | ||
- name: release sbt | ||
run: | | ||
|