update release.yml

This commit is contained in:
MihailRis 2025-12-04 01:36:38 +03:00 committed by ShiftyX1
parent a15961af8f
commit 082b5cd080

View File

@ -16,15 +16,15 @@ env:
RELEASE_VERSION: ${{ github.event.inputs.version || 'testrelease' }} RELEASE_VERSION: ${{ github.event.inputs.version || 'testrelease' }}
BRANCH_NAME: ${{ github.event.inputs.branch || 'main' }} BRANCH_NAME: ${{ github.event.inputs.branch || 'main' }}
jobs: jobs:
build_linux: # build_linux:
uses: ./.github/workflows/appimage.yml # uses: ./.github/workflows/appimage.yml
build_macos: # build_macos:
uses: ./.github/workflows/macos.yml # uses: ./.github/workflows/macos.yml
build_windows: # build_windows:
uses: ./.github/workflows/windows.yml # uses: ./.github/workflows/windows.yml
publish_release: publish_release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build_linux, build_macos, build_windows] needs: [build_macos]
steps: steps:
- name: Download Build Artifact - name: Download Build Artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
@ -33,11 +33,11 @@ jobs:
- name: Show Artifacts - name: Show Artifacts
run: | run: |
mkdir release mkdir release
mv ./artifacts/AppImage/VoxelCore-latest-x86_64.AppImage \ # mv ./artifacts/AppImage/VoxelCore-latest-x86_64.AppImage \
./release/voxelcore-${RELEASE_VERSION}_x86-64.AppImage # ./release/voxelcore-${RELEASE_VERSION}_x86-64.AppImage
mv ./artifacts/VoxelEngineMacOs/VoxelEngineMacApp.dmg \ mv ./artifacts/VoxelEngineMacOs/VoxelEngineMacApp.dmg \
./release/voxelcore-${RELEASE_VERSION}_macos.dmg ./release/voxelcore-${RELEASE_VERSION}_macos.dmg
zip -r ./release/voxelcore-${RELEASE_VERSION}_win64.zip ./artifacts/Windows-Build/* # zip -r ./release/voxelcore-${RELEASE_VERSION}_win64.zip ./artifacts/Windows-Build/*
ls -la ./release ls -la ./release
tree ./release tree ./release
- name: Checkout Release Branch - name: Checkout Release Branch
@ -46,15 +46,19 @@ jobs:
ref: ${{ env.BRANCH_NAME }} ref: ${{ env.BRANCH_NAME }}
- name: Create Tag - name: Create Tag
run: | run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
TAG_NAME="v${RELEASE_VERSION}" TAG_NAME="v${RELEASE_VERSION}"
git tag -a "${TAG_NAME}" -m "Automated release tag ${TAG_NAME}" git tag -a "${TAG_NAME}" -m "Automated release tag ${TAG_NAME}"
git push origin "${TAG_NAME}" git push origin "${TAG_NAME}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release Draft - name: Create Release Draft
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
tag_name: v${{ env.RELEASE_VERSION }} tag_name: v${{ env.RELEASE_VERSION }}
draft: true draft: true
files: ./release/* files: ./release/*
body: | generate_release_notes: true
Auto-generated