Skip to content

Commit 1c46786

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

2 files changed

Lines changed: 23 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 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,23 @@ jobs:
279279
with:
280280
path: out/
281281

282+
- name: "Path"
283+
run: |
284+
pwd
285+
ls -l
286+
287+
- name: "Checkout repository"
288+
uses: actions/checkout@v4
289+
290+
- name: "Create Release Notes"
291+
run: |
292+
pwd
293+
ls -l
294+
echo "# Changes\n\n" > out/release-notes.md
295+
dpkg-parsechangelog -S Changes | tail -n +4 >> out/release-notes.md
296+
282297
- name: "Release"
283298
uses: softprops/action-gh-release@v2
284299
with:
285300
files: "out/**/aptly_*.zip"
301+
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)