Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit 64eb997

Browse files
committed
v4.20 - new upstream release
1 parent ef4a605 commit 64eb997

File tree

8 files changed

+44
-45
lines changed

8 files changed

+44
-45
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,44 @@
1-
name: Build i3-gaps Debian packages
1+
name: Build and release packages
22

33
on:
44
push:
55
tags:
6-
- "*"
6+
- '*'
7+
8+
env:
9+
DEBIAN_STABLE: bullseye
10+
PKG_NAME: i3-gaps
711

812
jobs:
913
build:
1014
runs-on: ubuntu-latest
1115
steps:
12-
- uses: actions/checkout@v1
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
1319
- name: Build packages
1420
run: |
1521
set -xe
1622
mkdir -p assets
17-
./build.sh -i debian:buster-slim
18-
rename.ul .deb _debian_buster.deb target/i3-gaps_*.deb
19-
mv -n target/i3-gaps_*.deb assets/
23+
./build.sh -i debian:${{ env.DEBIAN_STABLE }}-slim
24+
rename.ul .deb _${{ env.DEBIAN_STABLE }}.deb target/${{ env.PKG_NAME }}_*.deb
25+
mv -n target/${{ env.PKG_NAME }}_*.deb assets/
2026
2127
./build.sh -i debian:testing-slim
22-
rename.ul .deb _debian_testing.deb target/i3-gaps_*.deb
23-
mv -n target/i3-gaps_*.deb assets/
28+
rename.ul .deb _testing.deb target/${{ env.PKG_NAME }}_*.deb
29+
mv -n target/${{ env.PKG_NAME }}_*.deb assets/
2430
2531
./build.sh -i debian:unstable-slim
26-
rename.ul .deb _debian_unstable.deb target/i3-gaps_*.deb
27-
mv -n target/i3-gaps_*.deb assets/
28-
- name: Create release
29-
id: create_release
30-
uses: actions/create-release@v1
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
rename.ul .deb _unstable.deb target/${{ env.PKG_NAME }}_*.deb
33+
mv -n target/${{ env.PKG_NAME }}_*.deb assets/
34+
35+
- name: Set Release Version
36+
run: echo "RELEASE_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
37+
38+
- name: Build packages
39+
uses: "marvinpinto/action-automatic-releases@v1.2.1"
3340
with:
34-
tag_name: ${{ github.ref }}
35-
release_name: ${{ github.ref }}
36-
draft: false
41+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
42+
automatic_release_tag: ${{ env.RELEASE_VERSION }}
3743
prerelease: false
38-
- name: Upload packages
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
ID: ${{ steps.create_release.outputs.id }}
42-
run: |
43-
set -xe
44-
for asset in assets/*
45-
do
46-
UPLOAD_URL="https://uploads.github.com/repos/$GITHUB_REPOSITORY/releases/$ID/assets"
47-
curl \
48-
-X POST \
49-
-H "Authorization: token $GITHUB_TOKEN" \
50-
-H "Content-Type: application/octet-stream" \
51-
--data-binary @"$asset" \
52-
"${UPLOAD_URL}?name=$(basename $asset)"
53-
done
44+
files: assets/*.deb

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2020, Martin Simon
3+
Copyright (c) 2020-2021, Martin Simon
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ This repository contains the source to build a Debian package for [i3-gaps](http
77
If you have [Docker](https://www.docker.com/) installed locally, just run the following:
88

99
```bash
10-
user@hostname$ ./build.sh
10+
$ ./build.sh
1111
```
12-
By default this will build i3-gaps 4.19.1 on Debian Buster.
12+
By default this will build i3-gaps 4.20 on Debian Bullseye.
1313

1414
If you want to customize the build at runtime, use the following:
1515

1616
```bash
17-
user@hostname$ ./build.sh -i debian:unstable-slim -v 4.16.1
17+
$ ./build.sh -i debian:unstable-slim -v 4.16.1
1818
```
1919
Don't forget to update `debian/changelog` so your package is generated with the correct version.
2020

@@ -30,7 +30,7 @@ To publish a new package version to Github, follow these steps:
3030
```
3131
BSD 3-Clause License
3232
33-
Copyright (c) 2020, Martin Simon
33+
Copyright (c) 2020-2021, Martin Simon
3434
All rights reserved.
3535
3636
Redistribution and use in source and binary forms, with or without
@@ -59,7 +59,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5959
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6060
```
6161

62-
6362
## References
6463

6564
* [Airblader/i3](https://github.com/Airblader/i3)

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
set -eu
44

5-
IMAGE="debian:buster-slim"
5+
IMAGE="debian:bullseye-slim"
66
TARGET="$(dirname "$0" | xargs realpath)"
7-
VERSION="4.19.1"
7+
VERSION="4.20"
88

99
while getopts "v:i:h" opt
1010
do

debian/changelog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
i3-gaps (4.20-1) unstable; urgency=medium
2+
3+
* New upstream release
4+
* Bullseye is now stable
5+
* Update debhelper
6+
* Improve Debian version and package name handling in Github Action
7+
8+
-- Martin Simon <me@martinsimon.me> Tue, 19 Oct 2021 00:00:00 +0000
9+
110
i3-gaps (4.19.1-1) unstable; urgency=medium
211

312
* Version 4.19.1

debian/compat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11
1+
12

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Priority: extra
44
Maintainer: Martin Simon <me@martinsimon.me>
55
Build-Depends:
66
asciidoc (>= 8.4.4),
7-
debhelper (>= 11),
7+
debhelper (>= 12),
88
docbook-xml,
99
libcairo2-dev (>= 1.14.4),
1010
libev-dev (>= 1:4.04),

debian/copyright

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Copyright: 2009 Michael Stapelberg
77
License: BSD-3-clause
88

99
Files: debian/*
10-
Copyright: 2020 Martin Simon <me@martinsimon.me>
10+
Copyright: 2020-2021 Martin Simon <me@martinsimon.me>
1111
License: BSD-3-clause
1212

1313
License: BSD-3-clause

0 commit comments

Comments
 (0)