@@ -18,6 +18,7 @@ concurrency:
1818env :
1919 # When getting Rust dependencies, retry on network error:
2020 CARGO_NET_RETRY : 10
21+ PRETEND_TAG : release-0.0.0
2122
2223jobs :
2324 build_icp :
5657 echo "RUSTFLAGS=--remap-path-prefix=${GITHUB_WORKSPACE}=/builds/dfinity" >> $GITHUB_ENV
5758
5859 - name : Set names (tag only)
59- if : github.ref_type == 'tag'
60+ # if: github.ref_type == 'tag'
6061 run : |
6162 echo "TARBALL_1_FILENAME=icp-cli-$GITHUB_REF_NAME-${{ matrix.name }}.tar.gz" >> $GITHUB_ENV
6263 echo "SHA256_1_FILENAME=icp-cli-$GITHUB_REF_NAME-${{ matrix.name }}.tar.gz.sha256" >> $GITHUB_ENV
8788 if : contains(matrix.os, 'ubuntu')
8889
8990 - name : Create tarball of binaries and sha256 of tarball
90- if : github.ref_type == 'tag'
91+ # if: github.ref_type == 'tag'
9192 run : |
9293 mkdir icp-${{ matrix.target }}
9394 cp ${{ matrix.binary_path }}/icp icp-${{ matrix.target }}
@@ -101,7 +102,7 @@ jobs:
101102 shasum -c ${{ env.SHA256_1_FILENAME }}
102103
103104 - name : Upload Artifacts
104- if : github.ref_type == 'tag'
105+ # if: github.ref_type == 'tag'
105106 uses : actions/upload-artifact@v4
106107 with :
107108 name : icp-artifacts-${{ hashFiles('rust-toolchain.toml') }}-${{ matrix.name }}
@@ -123,7 +124,7 @@ jobs:
123124
124125 publish :
125126 runs-on : ubuntu-latest
126- if : github.ref_type == 'tag'
127+ # if: github.ref_type == 'tag'
127128 needs : build_icp
128129 strategy :
129130 fail-fast : false
@@ -146,6 +147,6 @@ jobs:
146147 repo_token : ${{ secrets.GITHUB_TOKEN }}
147148 file : icp-*.tar.*
148149 file_glob : true
149- tag : ${{ env.VERSION }}
150+ tag : ${{ env.PRETEND_TAG }}
150151 prerelease : true
151152 make_latest : false
0 commit comments