Build and release packages #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and release packages | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
DEBIAN_STABLE: bookworm | |
PKG_NAME: alacritty | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
# Continue running on Ubuntu 20.04 because I can't be bothered to fix | |
# the whole rename.ul drama. | |
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926637 | |
# rename.ul was added back to Debian Testing so it should be back for Ubuntu | |
# 24.04 | |
# https://manpages.debian.org/testing/util-linux/rename.ul.1.en.html | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build packages | |
run: | | |
set -xe | |
mkdir -p assets | |
./build.sh -i debian:${{ env.DEBIAN_STABLE }}-slim | |
rename.ul .deb _${{ env.DEBIAN_STABLE }}.deb target/${{ env.PKG_NAME }}_*.deb | |
mv -n target/${{ env.PKG_NAME }}_*.deb assets/ | |
./build.sh -i debian:testing-slim | |
rename.ul .deb _testing.deb target/${{ env.PKG_NAME }}_*.deb | |
mv -n target/${{ env.PKG_NAME }}_*.deb assets/ | |
./build.sh -i debian:unstable-slim | |
rename.ul .deb _unstable.deb target/${{ env.PKG_NAME }}_*.deb | |
mv -n target/${{ env.PKG_NAME }}_*.deb assets/ | |
- name: Build packages | |
uses: "marvinpinto/[email protected]" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: assets/*.deb |