|
29 | 29 | deb_arch: amd64 |
30 | 30 | rpm_arch: x86_64 |
31 | 31 | arch_arch: x86_64 |
32 | | - - os: ubuntu-24.04-arm |
33 | | - deb_arch: arm64 |
34 | | - rpm_arch: aarch64 |
35 | | - arch_arch: aarch64 |
| 32 | + # ubuntu-24.04-arm is beta and unavailable on this plan; omitted for now |
36 | 33 |
|
37 | 34 | steps: |
38 | 35 | - name: Check out repository |
|
52 | 49 | echo "version=$version" >> "$GITHUB_OUTPUT" |
53 | 50 |
|
54 | 51 | - name: Install Rust toolchain |
55 | | - uses: dtolnay/rust-toolchain@stable |
| 52 | + run: | |
| 53 | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ |
| 54 | + sh -s -- -y --default-toolchain stable --profile minimal |
| 55 | + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" |
56 | 56 |
|
57 | 57 | - name: Install Linux build and package dependencies |
58 | 58 | run: | |
@@ -168,17 +168,16 @@ jobs: |
168 | 168 |
|
169 | 169 | - name: Publish native packages to GitHub release |
170 | 170 | if: startsWith(github.ref, 'refs/tags/turtle-term-v') |
171 | | - uses: softprops/action-gh-release@v2 |
172 | | - with: |
173 | | - files: | |
174 | | - dist/native/turtle-term_*.deb |
175 | | - dist/native/turtle-term_*.deb.sha256 |
176 | | - dist/native/turtle-term_*.deb.manifest.json |
177 | | - dist/native/rpmbuild/RPMS/**/*.rpm |
178 | | - dist/native/rpmbuild/RPMS/**/*.rpm.sha256 |
179 | | - dist/native/rpmbuild/RPMS/**/*.rpm.manifest.json |
180 | | - dist/native/turtle-term-*.pkg.tar.zst |
181 | | - dist/native/turtle-term-*.pkg.tar.zst.sha256 |
182 | | - dist/native/turtle-term-*.pkg.tar.zst.manifest.json |
183 | | - dist/native/turtle-term-native-packages.index.json |
184 | | - dist/native/turtle-term-native-packages.index.json.sha256 |
| 171 | + env: |
| 172 | + GH_TOKEN: ${{ github.token }} |
| 173 | + run: | |
| 174 | + tag="${GITHUB_REF_NAME}" |
| 175 | + gh release create "$tag" \ |
| 176 | + --title "TurtleTerm ${tag}" \ |
| 177 | + --notes "TurtleTerm ${tag} — native Linux packages." \ |
| 178 | + 2>/dev/null || true |
| 179 | + find dist/native -name '*.deb' -o -name '*.deb.sha256' -o -name '*.deb.manifest.json' \ |
| 180 | + -o -name '*.rpm' -o -name '*.rpm.sha256' -o -name '*.rpm.manifest.json' \ |
| 181 | + -o -name '*.pkg.tar.zst' -o -name '*.pkg.tar.zst.sha256' -o -name '*.pkg.tar.zst.manifest.json' \ |
| 182 | + -o -name '*.index.json' -o -name '*.index.json.sha256' \ |
| 183 | + | xargs gh release upload "$tag" --clobber |
0 commit comments