Skip to content

Commit 670cc9a

Browse files
Don't always upload the files
1 parent 2358824 commit 670cc9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
run: npx yarn dist -- --url ${{ secrets.SITE_URL }} --portable
7171

7272
- name: Upload build artifacts to server
73+
if: contains(github.event.head_commit.message, '[release]')
7374
run: node scripts/uploader.js --dir=dist
7475
env:
7576
UPLOAD_URL: ${{ secrets.SITE_URL }}
@@ -139,7 +140,7 @@ jobs:
139140
path: dist/linux-unpacked
140141

141142
- name: Update version on server
142-
if: runner.os == 'Linux'
143+
if: runner.os == 'Linux' && contains(github.event.head_commit.message, '[release]')
143144
run: |
144145
VERSION=$(node -p "require('./package.json').version")
145146
curl -X POST "${{ secrets.SITE_URL }}/update/upload.php" \

0 commit comments

Comments
 (0)