mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
Automatically upload artifacts to releases
This commit is contained in:
parent
4e5cbc5bf6
commit
770c802763
27
.github/workflows/ci.yaml
vendored
27
.github/workflows/ci.yaml
vendored
@ -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"
|
||||||
@ -95,3 +97,22 @@ jobs:
|
|||||||
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
|
Loading…
x
Reference in New Issue
Block a user