BlueGit

ict rusty-teams

ci(release): publish a GitHub release for v* tags

- release job packages the Linux, Windows and macOS builds with the tag in the name
- notes generated from the commits; tags with - are pre-releases

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-06 · 3 weeks ago

Hash
26163bad2d2c318e423e62d340eb1179f88e1e44
Parent
e058cdb6
1 file changed +30 −0
.github/workflows/build.yml +30 −0
@@ -4,6 +4,7 @@
4 4 name: Build
5 5
6 6 # Builds run for tags (the release assets); pushes are tested in test.yml.
7 # A `v*` tag also publishes a GitHub release; a tag with `-` (v0.2.0-rc.1) is a pre-release.
7 8 on:
8 9 push:
9 10 tags: ['*']
@@ -105,3 +106,32 @@ jobs:
105 106 with:
106 107 name: teams-macos
107 108 path: target/universal/release/teams-macos.zip
109
110 release:
111 name: Release
112 needs: [linux, windows, macos]
113 if: startsWith(github.ref, 'refs/tags/v')
114 runs-on: ubuntu-latest
115 permissions:
116 contents: write
117 steps:
118 - uses: actions/download-artifact@v8
119 with:
120 path: dist
121
122 # Artifacts drop the executable bit, the tarball restores it.
123 - name: Package
124 env:
125 TAG: ${{ github.ref_name }}
126 run: |
127 mkdir release
128 chmod +x dist/teams-linux-amd64/teams
129 tar -czf "release/rusty-teams-$TAG-linux-amd64.tar.gz" -C dist/teams-linux-amd64 teams
130 cp dist/teams-windows-amd64/teams.exe "release/rusty-teams-$TAG-windows-amd64.exe"
131 cp dist/teams-macos/teams-macos.zip "release/rusty-teams-$TAG-macos-universal.zip"
132
133 - uses: softprops/action-gh-release@v3
134 with:
135 files: release/*
136 generate_release_notes: true
137 prerelease: ${{ contains(github.ref_name, '-') }}
@@ -4,6 +4,7 @@
4name: Build
4name: Build
5
5
6# Builds run for tags (the release assets); pushes are tested in test.yml.
6# Builds run for tags (the release assets); pushes are tested in test.yml.
7# A `v*` tag also publishes a GitHub release; a tag with `-` (v0.2.0-rc.1) is a pre-release.
7on:
8on:
8 push:
9 push:
9 tags: ['*']
10 tags: ['*']
@@ -105,3 +106,32 @@ jobs:
105 with:
106 with:
106 name: teams-macos
107 name: teams-macos
107 path: target/universal/release/teams-macos.zip
108 path: target/universal/release/teams-macos.zip
109
110 release:
111 name: Release
112 needs: [linux, windows, macos]
113 if: startsWith(github.ref, 'refs/tags/v')
114 runs-on: ubuntu-latest
115 permissions:
116 contents: write
117 steps:
118 - uses: actions/download-artifact@v8
119 with:
120 path: dist
121
122 # Artifacts drop the executable bit, the tarball restores it.
123 - name: Package
124 env:
125 TAG: ${{ github.ref_name }}
126 run: |
127 mkdir release
128 chmod +x dist/teams-linux-amd64/teams
129 tar -czf "release/rusty-teams-$TAG-linux-amd64.tar.gz" -C dist/teams-linux-amd64 teams
130 cp dist/teams-windows-amd64/teams.exe "release/rusty-teams-$TAG-windows-amd64.exe"
131 cp dist/teams-macos/teams-macos.zip "release/rusty-teams-$TAG-macos-universal.zip"
132
133 - uses: softprops/action-gh-release@v3
134 with:
135 files: release/*
136 generate_release_notes: true
137 prerelease: ${{ contains(github.ref_name, '-') }}