Moved github release creation from travis to github action

This commit is contained in:
Alejandro Celaya
2020-11-01 11:23:11 +01:00
parent 65651e4bbd
commit ebe6a5f4aa
2 changed files with 29 additions and 12 deletions

29
.github/workflows/publish-release.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Publish release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use PHP 7.4
uses: shivammathur/setup-php@v2
with:
php-version: '7.4' # Publish release with lowest supported PHP version
tools: composer
- name: Generate release assets
run: ./build.sh ${GITHUB_REF#refs/tags/v}
- name: Publish release with assets
uses: docker://antonyurchenko/git-release:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ALLOW_TAG_PREFIX: "true"
ALLOW_EMPTY_CHANGELOG: "true"
with:
args: |
build/shlink_*_dist.zip