Better way to check if building from tag

This commit is contained in:
2023-07-15 09:00:33 +02:00
committed by belliash
parent 5d0ce7d4a4
commit 51043e4bad

View File

@@ -13,7 +13,7 @@ jobs:
- name: Build XTChain
run: CORES=10 ./build-linux.sh
- name: Publish binaries
if: github.ref_type == 'tag'
if: startsWith(github.ref, 'refs/tags/')
env:
OSCW_GITHUB_USERNAME: ${{ secrets.OSCW_GITHUB_USERNAME }}
OSCW_GITHUB_PASSWORD: ${{ secrets.OSCW_GITHUB_PASSWORD }}