Skip to content

Commit

Permalink
Update "release" GitHub Action to auto-update download links in Wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Jul 6, 2023
1 parent c37a9d1 commit 246dcc7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release_to_maven_central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,18 @@ jobs:
FOLDER: documentation
GITHUB_TOKEN: ${{ secrets.GRADLE_UPDATE_PAT }}
MESSAGE: "Updated docs to v${{ steps.gitversion.outputs.version }}"

- name: Check out Wiki source data
uses: actions/checkout@v3
with:
repository: ${{ github.repository }}.wiki
path: markdown

- name: Update and publish Wiki release link
run: |
cd markdown
sed -i "s@\*\*Current Version\*\*:.*@\*\*Current Version\*\*: \*${{ steps.gitversion.outputs.version }}\* ([[Download JAR file here|https://oss.sonatype.org/service/local/repositories/releases/content/com/fazecast/jSerialComm/${{ steps.gitversion.outputs.version }}/jSerialComm-${{ steps.gitversion.outputs.version }}.jar]])@" Home.md
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git diff-index --quiet HEAD || git commit -m "New jSerialComm release version" && git push

0 comments on commit 246dcc7

Please sign in to comment.