Skip to content

Commit

Permalink
CI: download latest main.html and main.js when build
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hu <[email protected]>
  • Loading branch information
daniel-hutao committed Nov 23, 2023
1 parent 8d667f8 commit 38954c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v4
- name: Get latest version of main.html and main.js
run: |
wget $(curl -s https://api.github.com/repos/devchat-ai/devchat-plugins-frontend/releases/latest | grep -oP '"browser_download_url": "\K(.*)(?=")' | grep main.html) -O src/main/resources/static/main.html
wget $(curl -s https://api.github.com/repos/devchat-ai/devchat-plugins-frontend/releases/latest | grep -oP '"browser_download_url": "\K(.*)(?=")' | grep main.js) -O src/main/resources/static/main.js
# Validate wrapper
- name: Gradle Wrapper Validation
Expand Down

0 comments on commit 38954c9

Please sign in to comment.