Skip to content

Commit

Permalink
Update release-update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmichalik committed Dec 31, 2023
1 parent 2a63038 commit a7b0495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ jobs:
cd ${{ github.workspace }}/vico
git remote set-url origin https://patrykandpatrickbot:${{ secrets.BOT_PAT }}@github.com/patrykandpatrick/vico.git
./gradlew dokkaHtmlMultiModule
API_REFERENCE_DESTINATION=${{ github.workspace }}/patrykandpatrick.com/src/vico/api/$(if $IS_PRERELEASE; then echo $VERSION_NAME; else echo main; fi)
API_REFERENCE_DESTINATION=${{ github.workspace }}/patrykandpatrick.com/src/vico/static/api/$(if $IS_PRERELEASE; then echo $VERSION_NAME; else echo main; fi)
rm -fr $API_REFERENCE_DESTINATION/*
cp -R ${{ github.workspace }}/vico/vico/build/dokka/htmlMultiModule/. $API_REFERENCE_DESTINATION
cd ${{ github.workspace }}/patrykandpatrick.com
git remote set-url origin https://patrykandpatrickbot:${{ secrets.BOT_PAT }}@github.com/patrykandpatrick/patrykandpatrick.com.git
git add src/vico/api
git add src/vico/static/api
git diff --staged --quiet HEAD || git commit -m "Update Vico API reference"
git push origin
cd ${{ github.workspace }}/vico
Expand Down

0 comments on commit a7b0495

Please sign in to comment.