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 /.github/workflows/release.yml | |
| parent | 8b73852b8b863e7dcbe78cb4744f5a3c7a157025 (diff) | |
Build releases also on master and updated the release steps (#434)
Diffstat (limited to '')
| -rw-r--r-- | .github/workflows/release.yml | 15 |
1 files changed, 11 insertions, 4 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 |
