2020-11-01 04:23:11 -06:00
|
|
|
name: Publish release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-08-01 10:13:34 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2021-02-13 06:29:38 -06:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-04-23 05:08:01 -05:00
|
|
|
php-version: ['8.1']
|
2021-02-13 06:29:38 -06:00
|
|
|
swoole: ['yes', 'no']
|
2020-11-01 04:23:11 -06:00
|
|
|
steps:
|
2022-08-13 04:56:46 -05:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: './.github/actions/ci-setup'
|
2022-08-13 03:11:41 -05:00
|
|
|
with:
|
|
|
|
php-version: ${{ matrix.php-version }}
|
2022-10-03 13:00:31 -05:00
|
|
|
php-extensions: openswoole-4.12.0
|
2022-08-13 04:56:46 -05:00
|
|
|
extensions-cache-key: publish-swagger-spec-extensions-${{ matrix.php-version }}
|
|
|
|
install-deps: 'no'
|
2021-02-13 06:29:38 -06:00
|
|
|
- if: ${{ matrix.swoole == 'yes' }}
|
2020-11-01 04:23:11 -06:00
|
|
|
run: ./build.sh ${GITHUB_REF#refs/tags/v}
|
2021-02-13 06:29:38 -06:00
|
|
|
- if: ${{ matrix.swoole == 'no' }}
|
|
|
|
run: ./build.sh ${GITHUB_REF#refs/tags/v} --no-swoole
|
2022-08-12 11:19:12 -05:00
|
|
|
- uses: actions/upload-artifact@v3
|
2021-02-13 06:29:38 -06:00
|
|
|
with:
|
2021-02-13 07:12:38 -06:00
|
|
|
name: dist-files-${{ matrix.php-version }}-${{ matrix.swoole }}
|
2021-02-13 06:29:38 -06:00
|
|
|
path: build
|
|
|
|
|
|
|
|
publish:
|
|
|
|
needs: ['build']
|
2022-08-01 10:13:34 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2021-02-13 06:29:38 -06:00
|
|
|
steps:
|
2022-08-13 04:56:46 -05:00
|
|
|
- uses: actions/checkout@v3
|
2022-08-12 11:19:12 -05:00
|
|
|
- uses: actions/download-artifact@v3
|
2021-02-13 06:29:38 -06:00
|
|
|
with:
|
|
|
|
path: build
|
2020-11-01 04:23:11 -06:00
|
|
|
- name: Publish release with assets
|
|
|
|
uses: docker://antonyurchenko/git-release:latest
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
ALLOW_EMPTY_CHANGELOG: "true"
|
|
|
|
with:
|
|
|
|
args: |
|
2021-02-13 07:33:36 -06:00
|
|
|
build/*/shlink*_dist.zip
|
2021-02-13 06:29:38 -06:00
|
|
|
|
|
|
|
delete-artifacts:
|
|
|
|
needs: ['publish']
|
2022-08-01 10:13:34 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2021-02-13 07:12:38 -06:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-04-23 05:08:01 -05:00
|
|
|
php-version: ['8.1']
|
|
|
|
swoole: ['yes', 'no']
|
2021-02-13 06:29:38 -06:00
|
|
|
steps:
|
|
|
|
- uses: geekyeggo/delete-artifact@v1
|
|
|
|
with:
|
2021-02-13 07:12:38 -06:00
|
|
|
name: dist-files-${{ matrix.php-version }}-${{ matrix.swoole }}
|