From 9aa4fa328f3cae22ac0dd347d28dc26799fe495e Mon Sep 17 00:00:00 2001 From: Giovanni Date: Sat, 27 Aug 2022 20:41:39 +0200 Subject: Build releases also on master and updated the release steps (#434) --- .github/workflows/release.yml | 15 +++++++++++---- CONTRIBUTING.md | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 71b2a58..f408491 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,7 @@ on: push: branches: - "release-*" + - "master" tags: - "v*" pull_request: @@ -46,8 +47,8 @@ jobs: container: ubuntu:focal - name: ubuntu-jammy container: ubuntu:jammy - - name: ubuntu-impish - container: ubuntu:impish + - name: ubuntu-kinetic + container: ubuntu:kinetic steps: - name: Checkout code uses: actions/checkout@v2 @@ -55,9 +56,15 @@ jobs: if: startsWith(matrix.container, 'ubuntu:') run: ln -snf /usr/share/zoneinfo/Europe/Paris /etc/localtime && echo Europe/Paris > /etc/timezone - name: Update OS - run: apt-get -qqy update + run: | + apt-get -qqy update || \ + sudo apt-get -qqy update - name: Install deps - run: DEBIAN_FRONTEND=noninteractive apt-get -qqy --no-install-recommends install fakeroot php-xml php-curl dpkg-dev gcc make libpcre3-dev dh-php php-dev build-essential + run: | + export DEBIAN_FRONTEND=noninteractive + export PACKAGES_TO_INSTALL="fakeroot php-xml php-curl dpkg-dev gcc make libpcre3-dev dh-php php-dev build-essential" + apt-get -qqy --no-install-recommends install $PACKAGES_TO_INSTALL || + sudo apt-get -qqy --no-install-recommends install $PACKAGES_TO_INSTALL - name: Build debs run: DPKG_SKIP_TESTS=1 dpkg-buildpackage -i -us -uc -tc -I -rfakeroot - name: Move built debs and rename diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4ff2bee..8e84abd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -139,8 +139,8 @@ Maintainers need to do the following to push out a release: git push origin master ``` -9. Build the debian package with `make debian` +9. Wait for the CI on the new tag branch to finish 10. Create the [release on github](https://github.com/jvoisin/snuffleupagus/releases) -11. Add the freshly built Debian package to the release +11. Add the freshly built Debian packages from the CI to the release 12. Publish a [tweet](https://twitter.com/sp_php) 13. Do the *secret release dance* -- cgit v1.3