File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8484 - uses : actions/checkout@v4
8585 with :
8686 ref : refs/tags/${{ needs.release.outputs.tag }}
87+ fetch-depth : 0
88+
89+ - name : Install gitversion-rs
90+ env :
91+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
92+ shell : bash
93+ run : |
94+ GV_TAG=$(gh release view --repo zcube/gitversion-rs --json tagName -q .tagName)
95+ case "${{ runner.os }}" in
96+ Linux)
97+ gh release download "$GV_TAG" --repo zcube/gitversion-rs \
98+ --pattern "gitversion-rs-${GV_TAG}-x86_64-unknown-linux-musl.tar.gz" --dir /tmp/gv
99+ tar xzf /tmp/gv/gitversion-rs-${GV_TAG}-x86_64-unknown-linux-musl.tar.gz -C /tmp/gv
100+ sudo install -m 0755 /tmp/gv/gitversion-rs /usr/local/bin/gitversion-rs
101+ ;;
102+ macOS)
103+ gh release download "$GV_TAG" --repo zcube/gitversion-rs \
104+ --pattern "gitversion-rs-${GV_TAG}-${{ matrix.target }}.tar.gz" --dir /tmp/gv
105+ tar xzf /tmp/gv/gitversion-rs-${GV_TAG}-${{ matrix.target }}.tar.gz -C /tmp/gv
106+ sudo install -m 0755 /tmp/gv/gitversion-rs /usr/local/bin/gitversion-rs
107+ ;;
108+ Windows)
109+ gh release download "$GV_TAG" --repo zcube/gitversion-rs \
110+ --pattern "gitversion-rs-${GV_TAG}-x86_64-pc-windows-msvc.zip" --dir /tmp/gv
111+ unzip /tmp/gv/gitversion-rs-${GV_TAG}-x86_64-pc-windows-msvc.zip -d /tmp/gv
112+ cp /tmp/gv/gitversion-rs.exe /usr/local/bin/gitversion-rs.exe
113+ ;;
114+ esac
115+ gitversion-rs --version
116+
117+ - name : Set version via gitversion-rs
118+ run : gitversion-rs --updatepackagefiles
87119
88120 - name : Install Rust toolchain
89121 uses : dtolnay/rust-toolchain@stable
You can’t perform that action at this time.
0 commit comments