Skip to content

Comment out work flow dispatch and indent job code. #6

Comment out work flow dispatch and indent job code.

Comment out work flow dispatch and indent job code. #6

name: Publish Loupe UX Server Windows 32
run-name: ${{ github.actor }} is publishing Loupe UX Server For Win 32 πŸš€
#on:
# push:
# tags:
# - '*'
# workflow_dispatch:

Check failure on line 7 in .github/workflows/publish Loupe UX Server Win32.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish Loupe UX Server Win32.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
jobs:
Build-Loupe-UX-Server:
runs-on: windows-2019
steps:
- run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "πŸ”Ž The name of your Tag is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.27.1'
- name: Use cmake
run: cmake --version
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: true
- run: echo "πŸ’‘ The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "πŸ–₯️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: CMake Generators List
run: cmake --help
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/src/LuxServer
run: cmake $GITHUB_WORKSPACE -G "Visual Studio 16 2019" -S . -B ./cmakebuild -A win32
- name: Build Executable
run: cmake --build ./src/LuxServer/cmakebuild --config Release --target luxserver
- run: echo "🍏 The build's status is ${{ job.status }}."
- name: Copy File
run: |
Copy-Item -Path ${{ github.workspace }}\src\LuxServer\configuration.json -Destination ${{ github.workspace }}\src\LuxServer\cmakebuild\src\server\Release\
- name: Compress Folder
run: |
Compress-Archive -Path ${{ github.workspace }}\src\LuxServer\cmakebuild\src\server\Release -${{ github.workspace }}\src\LuxServer\cmakebuild\src\server\Release\luxserverwin32.zip
- 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
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ${{ github.workspace }}\src\LuxServer\cmakebuild\src\server\Release\luxserverwin32.zip
asset_name: luxserverwin32.zip
asset_content_type: application/vnd.microsoft.portable-executable
- run: echo "πŸŽ‰ The release's status is ${{ job.status }}."