Skip to content

Commit 163bd22

Browse files
Update build.yml
1 parent 047333c commit 163bd22

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,16 @@ jobs:
136136
uses: actions/upload-artifact@v4
137137
with:
138138
name: Linux Portable Files
139-
path: dist/linux-unpacked
139+
path: dist/linux-unpacked
140+
141+
- name: Update version on server
142+
if: runner.os == 'Linux'
143+
run: |
144+
VERSION=$(node -p "require('./package.json').version")
145+
curl -X POST "${{ secrets.SITE_URL }}/update/upload.php" \
146+
-F "api_key=${{ secrets.UPLOAD_API_KEY }}" \
147+
-F "request_type=update_version" \
148+
-F "version=$VERSION"
149+
env:
150+
UPLOAD_URL: ${{ secrets.SITE_URL }}
151+
UPLOAD_API_KEY: ${{ secrets.UPLOAD_API_KEY }}

0 commit comments

Comments
 (0)