diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b205780..46d3065 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,6 +19,7 @@ jobs: - run: tar czf ckb-transaction-dumper_v${{ github.ref_name }}_node_executable_script.tar.gz ckb-transaction-dumper README.md LICENSE - name: Release uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: files: ckb-transaction-dumper_v${{ github.ref_name }}_node_executable_script.tar.gz @@ -35,6 +36,7 @@ jobs: - run: tar czf ckb-transaction-dumper_v${{ github.ref_name }}_linux_x86_64.tar.gz ckb-transaction-dumper README.md LICENSE - name: Release uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: files: ckb-transaction-dumper_v${{ github.ref_name }}_linux_x86_64.tar.gz @@ -51,10 +53,11 @@ jobs: - run: tar czf ckb-transaction-dumper_v${{ github.ref_name }}_macos_x86_64.tar.gz ckb-transaction-dumper README.md LICENSE - name: Release uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: files: ckb-transaction-dumper_v${{ github.ref_name }}_macos_x86_64.tar.gz - macos-release: + windows-release: runs-on: windows-2019 steps: - uses: actions/checkout@v3 @@ -67,5 +70,6 @@ jobs: - run: tar czf ckb-transaction-dumper_v${{ github.ref_name }}_win_x86_64.tar.gz ckb-transaction-dumper README.md LICENSE - name: Release uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: files: ckb-transaction-dumper_v${{ github.ref_name }}_win_x86_64.tar.gz