diff options
| author | Giovanni | 2022-08-27 20:41:39 +0200 |
|---|---|---|
| committer | GitHub | 2022-08-27 20:41:39 +0200 |
| commit | 9aa4fa328f3cae22ac0dd347d28dc26799fe495e (patch) | |
| tree | 9c8ea48c5c37ec5991eecf1412fd9ccbe948edb0 | |
| parent | 8b73852b8b863e7dcbe78cb4744f5a3c7a157025 (diff) | |
Build releases also on master and updated the release steps (#434)
| -rw-r--r-- | .github/workflows/release.yml | 15 | ||||
| -rw-r--r-- | 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: | |||
| 3 | push: | 3 | push: |
| 4 | branches: | 4 | branches: |
| 5 | - "release-*" | 5 | - "release-*" |
| 6 | - "master" | ||
| 6 | tags: | 7 | tags: |
| 7 | - "v*" | 8 | - "v*" |
| 8 | pull_request: | 9 | pull_request: |
| @@ -46,8 +47,8 @@ jobs: | |||
| 46 | container: ubuntu:focal | 47 | container: ubuntu:focal |
| 47 | - name: ubuntu-jammy | 48 | - name: ubuntu-jammy |
| 48 | container: ubuntu:jammy | 49 | container: ubuntu:jammy |
| 49 | - name: ubuntu-impish | 50 | - name: ubuntu-kinetic |
| 50 | container: ubuntu:impish | 51 | container: ubuntu:kinetic |
| 51 | steps: | 52 | steps: |
| 52 | - name: Checkout code | 53 | - name: Checkout code |
| 53 | uses: actions/checkout@v2 | 54 | uses: actions/checkout@v2 |
| @@ -55,9 +56,15 @@ jobs: | |||
| 55 | if: startsWith(matrix.container, 'ubuntu:') | 56 | if: startsWith(matrix.container, 'ubuntu:') |
| 56 | run: ln -snf /usr/share/zoneinfo/Europe/Paris /etc/localtime && echo Europe/Paris > /etc/timezone | 57 | run: ln -snf /usr/share/zoneinfo/Europe/Paris /etc/localtime && echo Europe/Paris > /etc/timezone |
| 57 | - name: Update OS | 58 | - name: Update OS |
| 58 | run: apt-get -qqy update | 59 | run: | |
| 60 | apt-get -qqy update || \ | ||
| 61 | sudo apt-get -qqy update | ||
| 59 | - name: Install deps | 62 | - name: Install deps |
| 60 | 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 | 63 | run: | |
| 64 | export DEBIAN_FRONTEND=noninteractive | ||
| 65 | export PACKAGES_TO_INSTALL="fakeroot php-xml php-curl dpkg-dev gcc make libpcre3-dev dh-php php-dev build-essential" | ||
| 66 | apt-get -qqy --no-install-recommends install $PACKAGES_TO_INSTALL || | ||
| 67 | sudo apt-get -qqy --no-install-recommends install $PACKAGES_TO_INSTALL | ||
| 61 | - name: Build debs | 68 | - name: Build debs |
| 62 | run: DPKG_SKIP_TESTS=1 dpkg-buildpackage -i -us -uc -tc -I -rfakeroot | 69 | run: DPKG_SKIP_TESTS=1 dpkg-buildpackage -i -us -uc -tc -I -rfakeroot |
| 63 | - name: Move built debs and rename | 70 | - 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: | |||
| 139 | git push origin master | 139 | git push origin master |
| 140 | ``` | 140 | ``` |
| 141 | 141 | ||
| 142 | 9. Build the debian package with `make debian` | 142 | 9. Wait for the CI on the new tag branch to finish |
| 143 | 10. Create the [release on github](https://github.com/jvoisin/snuffleupagus/releases) | 143 | 10. Create the [release on github](https://github.com/jvoisin/snuffleupagus/releases) |
| 144 | 11. Add the freshly built Debian package to the release | 144 | 11. Add the freshly built Debian packages from the CI to the release |
| 145 | 12. Publish a [tweet](https://twitter.com/sp_php) | 145 | 12. Publish a [tweet](https://twitter.com/sp_php) |
| 146 | 13. Do the *secret release dance* | 146 | 13. Do the *secret release dance* |
