new release

This commit is contained in:
Martin Simon 2021-08-30 04:55:10 +02:00
parent 4ef1da89b5
commit a31e0d66c6
6 changed files with 33 additions and 43 deletions

View file

@ -1,53 +1,40 @@
name: Build alacritty Debian packages name: Build and release packages
on: on:
push: push:
tags: tags:
- "*" - '*'
env:
DEBIAN_STABLE: bullseye
PKG_NAME: alacritty
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - name: Checkout
uses: actions/checkout@v2
- name: Build packages - name: Build packages
run: | run: |
set -xe set -xe
mkdir -p assets mkdir -p assets
./build.sh -i debian:buster-slim ./build.sh -i debian:${{ env.DEBIAN_STABLE }}-slim
rename.ul .deb _debian_buster.deb target/alacritty_*.deb rename.ul .deb _${{ env.DEBIAN_STABLE }}.deb target/${{ env.PKG_NAME }}_*.deb
mv -n target/alacritty_*.deb assets/ mv -n target/${{ env.PKG_NAME }}_*.deb assets/
./build.sh -i debian:testing-slim ./build.sh -i debian:testing-slim
rename.ul .deb _debian_testing.deb target/alacritty_*.deb rename.ul .deb _testing.deb target/${{ env.PKG_NAME }}_*.deb
mv -n target/alacritty_*.deb assets/ mv -n target/${{ env.PKG_NAME }}_*.deb assets/
./build.sh -i debian:unstable-slim ./build.sh -i debian:unstable-slim
rename.ul .deb _debian_unstable.deb target/alacritty_*.deb rename.ul .deb _unstable.deb target/${{ env.PKG_NAME }}_*.deb
mv -n target/alacritty_*.deb assets/ mv -n target/${{ env.PKG_NAME }}_*.deb assets/
- name: Create release
id: create_release - name: Build packages
uses: actions/create-release@v1 uses: "marvinpinto/action-automatic-releases@v1.2.1"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ github.ref }} repo_token: "${{ secrets.GITHUB_TOKEN }}"
release_name: ${{ github.ref }}
draft: false
prerelease: false prerelease: false
- name: Upload packages files: assets/*.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ID: ${{ steps.create_release.outputs.id }}
run: |
set -xe
for asset in assets/*
do
UPLOAD_URL="https://uploads.github.com/repos/$GITHUB_REPOSITORY/releases/$ID/assets"
curl \
-X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @"$asset" \
"${UPLOAD_URL}?name=$(basename $asset)"
done

View file

@ -2,7 +2,7 @@
set -eu set -eu
IMAGE="debian:buster-slim" IMAGE="debian:bullseye-slim"
TARGET="$(dirname "$0" | xargs realpath)" TARGET="$(dirname "$0" | xargs realpath)"
VERSION="v0.9.0" VERSION="v0.9.0"

8
debian/changelog vendored
View file

@ -1,3 +1,11 @@
alacritty (0.9.0-2) unstable; urgency=medium
* Bullseye is now stable
* Update debhelper
* Improve Debian version and package name handling in Github Action
-- Martin Simon <me@martinsimon.me> Tue, 03 Aug 2021 00:00:00 +0000
alacritty (0.9.0-1) unstable; urgency=medium alacritty (0.9.0-1) unstable; urgency=medium
* New upstream release * New upstream release

2
debian/compat vendored
View file

@ -1 +1 @@
11 12

4
debian/control vendored
View file

@ -4,7 +4,7 @@ Priority: optional
Maintainer: Martin Simon <me@martinsimon.me> Maintainer: Martin Simon <me@martinsimon.me>
Build-Depends: Build-Depends:
cargo:native, cargo:native,
debhelper (>= 11), debhelper (>= 12),
help2man, help2man,
libfreetype6-dev, libfreetype6-dev,
libfontconfig1-dev, libfontconfig1-dev,
@ -15,7 +15,7 @@ Build-Depends:
libxkbcommon-dev, libxkbcommon-dev,
rustc:native, rustc:native,
python3, python3,
Standards-Version: 4.5.0 Standards-Version: 4.5.1
Homepage: https://github.com/alacritty/alacritty Homepage: https://github.com/alacritty/alacritty
Package: alacritty Package: alacritty

View file

@ -12,11 +12,6 @@ export DEBIAN_FRONTEND DEB_BUILD_OPTIONS
dependencies() { dependencies() {
apt update && apt install -y devscripts equivs git apt update && apt install -y devscripts equivs git
if [ "$OS_VERSION" = 10 ]; then
apt install -y curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. ~/.cargo/env
fi
} }
get_sources() { get_sources() {