Skip to content

Commit ab18da3

Browse files
committed
ci: add release notes
and update Releasing.md
1 parent 1abb735 commit ab18da3

File tree

2 files changed

+37
-17
lines changed

2 files changed

+37
-17
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
GOPROXY: "https://proxy.golang.org"
3131

3232
steps:
33-
- name: "Install packages"
33+
- name: "Install Packages"
3434
run: |
3535
sudo apt-get update
3636
sudo apt-get install -y --no-install-recommends graphviz gnupg2 gpgv2 git gcc make devscripts python3 python3-requests-unixsocket python3-termcolor python3-swiftclient python3-boto python3-azure-storage python3-etcd3 python3-plyvel flake8
3737
38-
- name: "Checkout repository"
38+
- name: "Checkout Repository"
3939
uses: actions/checkout@v4
4040
with:
4141
# fetch the whole repo for `git describe` to work
@@ -45,7 +45,7 @@ jobs:
4545
run: |
4646
make flake8
4747
48-
- name: "Read go version from go.mod"
48+
- name: "Read Go Version"
4949
run: |
5050
gover=$(sed -n 's/^go \(.*\)/\1/p' go.mod)
5151
echo "Go Version: $gover"
@@ -91,12 +91,12 @@ jobs:
9191
sudo mkdir -p /srv ; sudo chown runner /srv
9292
COVERAGE_DIR=${{ runner.temp }} make system-test
9393
94-
- name: "Merge code coverage"
94+
- name: "Merge Code Coverage"
9595
run: |
9696
go install github.com/wadey/gocovmerge@latest
9797
~/go/bin/gocovmerge unit.out ${{ runner.temp }}/*.out > coverage.txt
9898
99-
- name: "Upload code coverage"
99+
- name: "Upload Code Coverage"
100100
uses: codecov/codecov-action@v2
101101
with:
102102
token: ${{ secrets.CODECOV_TOKEN }}
@@ -148,13 +148,13 @@ jobs:
148148
gcc-i686-linux-gnu gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu
149149
git config --global --add safe.directory "$GITHUB_WORKSPACE"
150150
151-
- name: "Checkout repository"
151+
- name: "Checkout Repository"
152152
uses: actions/checkout@v4
153153
with:
154154
# fetch the whole repo for `git describe` to work
155155
fetch-depth: 0
156156

157-
- name: "Read go version from go.mod"
157+
- name: "Read Go Version"
158158
run: |
159159
gover=$(sed -n 's/^go \(.*\)/\1/p' go.mod)
160160
echo "Go Version: $gover"
@@ -221,13 +221,13 @@ jobs:
221221
- goos: darwin
222222
goarch: arm
223223
steps:
224-
- name: "Checkout repository"
224+
- name: "Checkout Repository"
225225
uses: actions/checkout@v4
226226
with:
227227
# fetch the whole repo for `git describe` to work
228228
fetch-depth: 0
229229

230-
- name: "Read go version from go.mod"
230+
- name: "Read Go Version"
231231
run: |
232232
echo "GOVER=$(sed -n 's/^go \(.*\)/\1/p' go.mod)" >> $GITHUB_OUTPUT
233233
id: goversion
@@ -274,12 +274,31 @@ jobs:
274274
needs: ci-binary-build
275275
if: startsWith(github.event.ref, 'refs/tags')
276276
steps:
277+
- name: "Checkout Repository"
278+
uses: actions/checkout@v4
279+
280+
- name: "Get aptly version"
281+
env:
282+
FORCE_CI: ${{ steps.force_ci.outputs.FORCE_CI }}
283+
run: |
284+
aptlyver=$(make -s version)
285+
echo "Aptly Version: $aptlyver"
286+
echo "VERSION=$aptlyver" >> $GITHUB_OUTPUT
287+
id: releaseversion
288+
277289
- name: "Download Artifacts"
278290
uses: actions/download-artifact@v4
279291
with:
280292
path: out/
281293

294+
- name: "Create Release Notes"
295+
run: |
296+
echo -e "## Changes\n\n" > out/release-notes.md
297+
dpkg-parsechangelog -S Changes | tail -n +4 >> out/release-notes.md
298+
282299
- name: "Release"
283300
uses: softprops/action-gh-release@v2
284301
with:
302+
name: "Aptly Release ${{ steps.releaseversion.outputs.VERSION }}"
285303
files: "out/**/aptly_*.zip"
304+
body_path: "out/release-notes.md"

Releasing.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
- create branch release/1.x.y
44
- update debian/changelog
55
- create PR, merge when approved
6-
- on updated master, git tag and push:
7-
```
8-
version=$(dpkg-parsechangelog -S Version)
9-
git tag -a v$version -m 'aptly: release $version'
10-
git push aptly-dev v$version
11-
```
12-
- run swagger locally
13-
- add generated swagger-1.x.y.json to www.aptly.info
6+
- on updated master, create release:
7+
```
8+
version=$(dpkg-parsechangelog -S Version)
9+
echo Releasing prod version $version
10+
git tag -a v$version -m 'aptly: release $version'
11+
git push origin v$version master
12+
```
13+
- run swagger locally (`make docker-serve`)
14+
- copy generated docs/swagger.json to https://github.com/aptly-dev/www.aptly.info/tree/master/static/swagger/aptly_1.x.y.json
1415
- releae www.aptly.info
1516
- create release announcement on https://github.com/aptly-dev/aptly/discussions

0 commit comments

Comments
 (0)