Skip to content

Commit

Permalink
adjusting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Mar 3, 2024
1 parent c5833d7 commit c904f2c
Showing 1 changed file with 29 additions and 28 deletions.
57 changes: 29 additions & 28 deletions .github/workflows/editor_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,34 +52,35 @@ jobs:
echo "Latest desktop version tag: $latest_tag"
echo "version=$latest_tag" >> $GITHUB_OUTPUT
create-release:
needs: [build-editor, calculate-version]
runs-on: windows-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@v2
with:
name: Binaries
path: x64/Release
- name: Create Release for Editor
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.calculate-version.outputs.version }}
release_name: Vortex Editor Release ${{ needs.calculate-version.outputs.version }}
draft: false
prerelease: false
- name: Upload Release Asset for Editor
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-${{ needs.calculate-version.outputs.version }}.exe
asset_content_type: application/octet-stream
# create-release:
# needs: [build-editor, calculate-version]
# runs-on: windows-latest
# if: github.ref == 'refs/heads/master'
# steps:
# - uses: actions/download-artifact@v2
# with:
# name: Binaries
# path: x64/Release
# # commenting out the create release step for now
# #- name: Create Release for Editor
# # id: create_release
# # uses: actions/create-release@v1
# # env:
# # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # with:
# # tag_name: ${{ needs.calculate-version.outputs.version }}
# # release_name: Vortex Editor Release ${{ needs.calculate-version.outputs.version }}
# # draft: false
# # prerelease: false
# - name: Upload Release Asset for Editor
# 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-${{ needs.calculate-version.outputs.version }}.exe
# asset_content_type: application/octet-stream
upload-release:
Expand Down

0 comments on commit c904f2c

Please sign in to comment.