Skip to content

Commit d34dc65

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

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/ci.yml

Lines changed: 11 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:
@@ -274,12 +274,21 @@ 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+
277280
- name: "Download Artifacts"
278281
uses: actions/download-artifact@v4
279282
with:
280283
path: out/
281284

285+
- name: "Create Release Notes"
286+
run: |
287+
echo "# Changes\n\n" > out/release-notes.md
288+
dpkg-parsechangelog -S Changes | tail -n +4 >> out/release-notes.md
289+
282290
- name: "Release"
283291
uses: softprops/action-gh-release@v2
284292
with:
285293
files: "out/**/aptly_*.zip"
294+
body_path: "out/release-notes.md"

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)