Skip to content

Commit

Permalink
Split release creation into separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
adam4813 committed Nov 2, 2020
1 parent a36efb4 commit db86d28
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/tec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,27 +110,33 @@ jobs:
${{ github.workspace }}/build/server/trillek-serverd
${{ github.workspace }}/build/server/trillek-server.exe
if-no-files-found: ignore
publish:
prepublish:
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: false
matrix:
os: [ windows-2016, ubuntu-latest, ubuntu-16.04, macOS-latest ]
arch: [ x64 ]
if: startsWith(github.ref, 'refs/tags/v')
name: Upload Release Asset
name: Create Release
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: '${{ github.ref }}-${{ matrix.os }}'
tag_name: '${{ github.ref }}'
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
publish:
runs-on: ubuntu-latest
needs: prepublish
strategy:
fail-fast: false
matrix:
os: [ windows-2016, ubuntu-latest, ubuntu-16.04, macOS-latest ]
arch: [ x64 ]
if: startsWith(github.ref, 'refs/tags/v')
name: Upload Release Asset(s)
steps:
- name: Download a single artifact
uses: actions/download-artifact@v2
with:
Expand Down

0 comments on commit db86d28

Please sign in to comment.