add more steps
This commit is contained in:
parent
85258ff036
commit
678c42a825
32
.github/workflows/release.yml
vendored
32
.github/workflows/release.yml
vendored
@ -6,8 +6,15 @@ on:
|
|||||||
description: 'Engine release version'
|
description: 'Engine release version'
|
||||||
required: true
|
required: true
|
||||||
default: "0.0.0"
|
default: "0.0.0"
|
||||||
|
branch:
|
||||||
|
description: 'Release branch name'
|
||||||
|
required: true
|
||||||
|
default: "release-0.0"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
env:
|
||||||
|
RELEASE_VERSION: ${{ github.event.inputs.version || 'testrelease' }}
|
||||||
|
BRANCH_NAME: ${{ github.event.inputs.branch || 'main' }}
|
||||||
jobs:
|
jobs:
|
||||||
build_linux:
|
build_linux:
|
||||||
uses: ./.github/workflows/appimage.yml
|
uses: ./.github/workflows/appimage.yml
|
||||||
@ -25,6 +32,27 @@ jobs:
|
|||||||
path: ./artifacts
|
path: ./artifacts
|
||||||
- name: Show Artifacts
|
- name: Show Artifacts
|
||||||
run: |
|
run: |
|
||||||
sudo apt install -y tree
|
mkdir release
|
||||||
tree ./artifacts
|
mv ./artifacts/AppImage/VoxelCore-latest-x86_64.AppImage \
|
||||||
|
./release/voxelcore-${RELEASE_VERSION}_x86-64.AppImage
|
||||||
|
mv ./artifacts/VoxelEngineMacOs/VoxelEngineMacApp.dmg \
|
||||||
|
./release/voxelcore-${RELEASE_VERSION}_macos.dmg
|
||||||
|
zip -r ./release/voxelcore-${RELEASE_VERSION}_win64.zip ./artifacts/Windows-Build/*
|
||||||
|
ls -la ./release
|
||||||
|
tree ./release
|
||||||
|
- name: Create Tag
|
||||||
|
run: |
|
||||||
|
TAG_NAME="v${RELEASE_VERSION}"
|
||||||
|
|
||||||
|
git switch $BRANCH_NAME
|
||||||
|
git tag -a "${TAG_NAME}" -m "Automated release tag ${TAG_NAME}"
|
||||||
|
git push origin "${TAG_NAME}"
|
||||||
|
- name: Create Release Draft
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: v${{ env.RELEASE_VERSION }}
|
||||||
|
draft: true
|
||||||
|
files: ./release/*
|
||||||
|
body: |
|
||||||
|
Auto-generated
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user