GitHub releases

This commit is contained in:
Martin Marmsoler 2022-01-27 12:14:19 +01:00
parent 940a71d110
commit a7c818b2de

View File

@ -59,6 +59,12 @@ jobs:
cache: false
branch: development
- name: Publish build artifacts
uses: actions/upload-artifact@v2
with:
path: com.github.Murmele.Gittyup/*
name: Gittyup Flatpak
build:
runs-on: ${{ matrix.env.os }}
@ -73,13 +79,13 @@ jobs:
openssl_arch: linux-x86_64
cmake_env: {}
- name: mac
os: macos-latest
ninja_platform: mac
qt_platform: mac
openssl_arch: darwin64-x86_64-cc
cmake_env: {}
pack: 1
#- name: mac
#os: macos-latest
#ninja_platform: mac
#qt_platform: mac
#openssl_arch: darwin64-x86_64-cc
#cmake_env: {}
#pack: 1
- name: win64
os: windows-latest
@ -206,4 +212,39 @@ jobs:
run: |
cd build/release
ninja check
prerelease:
# https://github.com/marvinpinto/actions/issues/177
needs: [flatpak, build]
runs-on: ubuntu-latest # does not matter which
if: ${{ github.ref == 'refs/heads/master' }}
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
path: artifacts
- name: list artifacts folder
run: |
echo "Show artifacts folder:"
ls artifacts
echo "Show artifacts/Gittyup Flatpak folder:"
ls "artifacts/Gittyup Flatpak"
echo "Show artifacts/com.github.Murmele.Gittyup-x86_64:"
ls "artifacts/com.github.Murmele.Gittyup-x86_64"
- name: Update GitHub prerelease
if: ${{ github.ref == 'refs/heads/master' }}
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: true
title: "Latest Build"
files: |
**/artifacts/Gittyup win64/Gittyup*.exe
**/artifacts/Gittyup win32/Gittyup*.exe
**/artifacts/Gittyup Flatpak/com.github.Murmele.Gittyup.yml
**/com.github.Murmele.Gittyup-x86_64/*.flatpak
...