mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Add release job
This commit is contained in:
parent
168e20afb1
commit
40d764236e
36
.github/workflows/ci.yml
vendored
36
.github/workflows/ci.yml
vendored
@ -1,7 +1,10 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
tags:
|
||||
- 'v*'
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
@ -31,4 +34,33 @@ jobs:
|
||||
with:
|
||||
name: Bloxstrap (${{ matrix.configuration }}, ${{ matrix.platform }})
|
||||
path: |
|
||||
.\Bloxstrap\bin\${{ matrix.configuration }}\net6.0-windows\win-${{ matrix.platform }}\publish\*
|
||||
.\Bloxstrap\bin\${{ matrix.configuration }}\net6.0-windows\win-${{ matrix.platform }}\publish\*
|
||||
|
||||
release:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
||||
steps:
|
||||
- name: Download x64 release artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: Bloxstrap (Release, x64)
|
||||
path: x64
|
||||
- name: Download x86 release artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: Bloxstrap (Release, x86)
|
||||
path: x86
|
||||
- name: Rename binaries
|
||||
run: |
|
||||
mv x64/Bloxstrap.exe Bloxstrap-${{ github.ref_name }}-x64.exe
|
||||
mv x86/Bloxstrap.exe Bloxstrap-${{ github.ref_name }}-x86.exe
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
draft: true
|
||||
files: |
|
||||
Bloxstrap-${{ github.ref_name }}-x64.exe
|
||||
Bloxstrap-${{ github.ref_name }}-x86.exe
|
||||
name: Bloxstrap ${{ github.ref_name }}
|
||||
|
Loading…
Reference in New Issue
Block a user