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: on:
push: push:
branches: [ "main" ] branches:
- "main"
tags: tags:
- v* - "v*.*.*"
pull_request: pull_request:
branches: [ "main" ] branches:
- "main"
env: env:
PREMAKE_VERSION: "5.0.0-beta2" PREMAKE_VERSION: "5.0.0-beta2"
@ -94,4 +96,23 @@ jobs:
with: with:
name: oat-windows name: oat-windows
path: | path: |
${{ github.workspace }}/build/bin/Release_x86 ${{ 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