shlink/.github/workflows/publish-release.yml

51 lines
1.2 KiB
YAML
Raw Normal View History

name: Publish release
on:
push:
tags:
- 'v*'
jobs:
build:
2024-07-23 13:02:49 -05:00
runs-on: ubuntu-24.04
strategy:
matrix:
2024-07-23 13:02:49 -05:00
php-version: ['8.2', '8.3'] # TODO 8.4
steps:
2023-11-04 06:42:31 -05:00
- uses: actions/checkout@v4
- uses: './.github/actions/ci-setup'
with:
php-version: ${{ matrix.php-version }}
extensions-cache-key: publish-swagger-spec-extensions-${{ matrix.php-version }}
install-deps: 'no'
2024-02-16 16:02:46 -06:00
- run: ./build.sh ${GITHUB_REF#refs/tags/v}
2023-12-19 04:13:13 -06:00
- uses: actions/upload-artifact@v4
with:
2024-02-16 16:02:46 -06:00
name: dist-files-${{ matrix.php-version }}
path: build
publish:
needs: ['build']
2024-07-23 13:02:49 -05:00
runs-on: ubuntu-24.04
steps:
2023-11-04 06:42:31 -05:00
- uses: actions/checkout@v4
2023-12-19 04:13:13 -06:00
- uses: actions/download-artifact@v4
with:
path: build
- name: Publish release with assets
uses: docker://antonyurchenko/git-release:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ALLOW_EMPTY_CHANGELOG: "true"
with:
args: |
build/*/shlink*_dist.zip
delete-artifacts:
needs: ['publish']
2024-07-23 13:02:49 -05:00
runs-on: ubuntu-24.04
steps:
2023-04-12 12:13:35 -05:00
- uses: geekyeggo/delete-artifact@v2
with:
2023-04-12 12:13:35 -05:00
name: dist-files-*