Skip to content

Commit 44c840c

Browse files
committed
WIP ci: add release notes
test release
1 parent 1abb735 commit 44c840c

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200
.github/workflows/scripts/upload-artifacts.sh ci ${{ matrix.suite }}
201201
202202
- name: "Publish release to aptly"
203-
if: startsWith(github.event.ref, 'refs/tags') && steps.aptlycreds.outputs.FOUND == 'yes'
203+
if: startsWith(github.event.ref, 'refs/tags') && steps.aptlycreds.outputs.FOUND == 'yes' && false
204204
env:
205205
APTLY_USER: ${{ secrets.APTLY_USER }}
206206
APTLY_PASSWORD: ${{ secrets.APTLY_PASSWORD }}
@@ -209,7 +209,7 @@ jobs:
209209
210210
ci-binary-build:
211211
name: "Build"
212-
needs: test
212+
# needs: test
213213
runs-on: ubuntu-latest
214214
strategy:
215215
matrix:
@@ -279,7 +279,13 @@ jobs:
279279
with:
280280
path: out/
281281

282+
- name: "Create Release Notes"
283+
echo "# Changes\n\n" > out/release-notes.md
284+
dpkg-parsechangelog -S Changes | tail -n +4 >> out/release-notes.md
285+
282286
- name: "Release"
283287
uses: softprops/action-gh-release@v2
284288
with:
285289
files: "out/**/aptly_*.zip"
290+
body_path: "out/release-notes.md"
291+

Releasing.md

Lines changed: 5 additions & 4 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:
6+
- on updated master, create release:
77
```
88
version=$(dpkg-parsechangelog -S Version)
9+
echo Releasing prod version $version
910
git tag -a v$version -m 'aptly: release $version'
10-
git push aptly-dev v$version
11+
git push origin v$version master
1112
```
12-
- run swagger locally
13-
- add generated swagger-1.x.y.json to www.aptly.info
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)