Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daniel/engine desktop build #13

Merged
merged 5 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/editor_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Editor Build and Release

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build-editor:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
ref: 'daniel/engine_desktop_build'
- name: Checkout Vortex Engine
uses: actions/checkout@v3
with:
repository: 'StoneOrbits/VortexEngine'
path: 'VortexEditor/VortexEngine'
ref: 'desktop'
- name: Set up MSBuild path
uses: microsoft/setup-msbuild@v1
- name: Build
run: msbuild VortexEditor.sln /p:Configuration=Release /p:Platform=x64
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: Binaries
path: x64/Release/VortexEditor.exe

create-release:
runs-on: windows-latest
needs: build-editor
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: Binaries
path: x64/Release/
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./x64/Release/VortexEditor.exe
asset_name: VortexEditor.exe
asset_content_type: application/octet-stream

Loading
Loading