Skip to content

Commit edfe3fa

Browse files
authored
Update update_binaries.yml
1 parent 2e23c59 commit edfe3fa

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/update_binaries.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,25 @@ name: Update WebUI Binaries
22

33
on:
44
push:
5-
tags:
6-
- 'update-webui'
5+
branches:
6+
- main
7+
8+
env:
9+
WRAPPER_WEBUI_BIN_PATH: PyPI/Package/src/webui
710

811
jobs:
912
update-webui-binaries:
1013
runs-on: ubuntu-latest
14+
1115
steps:
1216
- name: Checkout the repo
1317
uses: actions/checkout@v2
1418

19+
- name: Install Tools
20+
continue-on-error: true
21+
run: |
22+
sudo apt-get install -y wget unzip tar git findutils
23+
1524
- name: Download WebUI Archives
1625
run: |
1726
mkdir -p TempArchives
@@ -75,7 +84,7 @@ jobs:
7584
7685
- name: Copy Libs to Wrapper
7786
run: |
78-
cp -ru TempOut/* PyPI/Package/src/webui/
87+
cp -ru TempOut/* "$WRAPPER_WEBUI_BIN_PATH/"
7988
8089
- name: Remove Temporary Archives
8190
run: |
@@ -86,11 +95,6 @@ jobs:
8695
run: |
8796
git config user.name github-actions
8897
git config user.email github-actions@github.com
89-
git add PyPI/Package/src/webui/
90-
git commit -m "Update WebUI binaries" || echo "No changes to commit"
98+
git add "$WRAPPER_WEBUI_BIN_PATH/"
99+
git commit -m "Update WebUI binaries" || echo "No WebUI binaries changes to commit"
91100
git push
92-
93-
- name: Delete Tag
94-
run: |
95-
git tag -d update-webui
96-
git push --delete origin update-webui

0 commit comments

Comments
 (0)