Skip to content

Commit b774b58

Browse files
committed
fix(CI): publishing to the archive server only for nightly&release builds
1 parent 7e9f53c commit b774b58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test-and-publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ jobs:
383383
# Publish to ⊇istributive's archive server (https://archive.distributed.computer/releases/pythonmonkey/)
384384
needs: [build-and-test, sdist]
385385
runs-on: ubuntu-20.04
386-
if: ${{ (success() || failure()) && true }} # (github.ref_name == 'main' || github.ref_type == 'tag')
386+
if: ${{ (success() || failure()) && (github.ref_name == 'main' || github.ref_type == 'tag') }}
387387
environment:
388388
name: archive
389389
url: https://archive.distributed.computer/releases/pythonmonkey/${{ steps.get_path.outputs.ARCHIVE_PATH }}
@@ -420,3 +420,4 @@ jobs:
420420
key: ${{ secrets.ARCHIVE_KEY }}
421421
source: ./*
422422
target: archive/${{ steps.get_path.outputs.ARCHIVE_PATH }}
423+
overwrite: true

0 commit comments

Comments
 (0)