Skip to content

Commit

Permalink
don't build manual on action
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Oct 7, 2024
1 parent 5ffce9e commit 1c1da18
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "daikoku-github-actions@users.noreply.github.com"
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 "daikoku-github-actions@users.noreply.github.com"
# 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: |
Expand Down

0 comments on commit 1c1da18

Please sign in to comment.