Automatically upload artifacts to releases

This commit is contained in:
Jan 2023-11-04 13:24:19 +01:00
parent 4e5cbc5bf6
commit 770c802763
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C

View File

@ -2,11 +2,13 @@ name: ci
on:
push:
branches: [ "main" ]
branches:
- "main"
tags:
- v*
- "v*.*.*"
pull_request:
branches: [ "main" ]
branches:
- "main"
env:
PREMAKE_VERSION: "5.0.0-beta2"
@ -95,3 +97,22 @@ jobs:
name: oat-windows
path: |
${{ github.workspace }}/build/bin/Release_x86
release:
if: startsWith(github.ref, 'refs/tags/')
needs:
- build-test-linux
- build-test-windows
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
artifacts: "*.zip"
artifactErrorsFailBuild: true
allowUpdates: true
draft: true
omitBodyDuringUpdate: true
omitDraftDuringUpdate: true