]> git.deb.at Git - rhonda/impostor.git/commitdiff
Add OSX build for the server and publish single files
authorAeonLucid <aeonlucid@gmail.com>
Fri, 25 Sep 2020 16:52:15 +0000 (18:52 +0200)
committerAeonLucid <aeonlucid@gmail.com>
Fri, 25 Sep 2020 16:52:15 +0000 (18:52 +0200)
.github/workflows/deploy.yml
.github/workflows/main.yml

index ad8369b99844914fe4d290a06bbb5128956202f2..e9a690cd705fb8f995136c3c7f203a52dc18e6ad 100644 (file)
@@ -35,7 +35,7 @@ jobs:
           7z a -r $GITHUB_WORKSPACE/build/win-x64-client.zip *
           cd $GITHUB_WORKSPACE
       - name: Publish Impostor.Server (win-x64)
-        run: dotnet publish -c release -o ./build/win-x64 -f netcoreapp3.1 -r win-x64 --self-contained --no-restore ./src/Impostor.Server/Impostor.Server.csproj
+        run: dotnet publish -c release -o ./build/win-x64 -f netcoreapp3.1 -r win-x64 --self-contained --no-restore ./src/Impostor.Server/Impostor.Server.csproj /p:PublishSingleFile=true
       - name: Zip Impostor.Server (win-x64)
         shell: bash
         run: |
@@ -43,13 +43,21 @@ jobs:
           7z a -r ../win-x64.zip *
           cd $GITHUB_WORKSPACE
       - name: Publish Impostor.Server (linux-x64)
-        run: dotnet publish -c release -o ./build/linux-x64 -f netcoreapp3.1 -r linux-x64 --self-contained --no-restore ./src/Impostor.Server/Impostor.Server.csproj
+        run: dotnet publish -c release -o ./build/linux-x64 -f netcoreapp3.1 -r linux-x64 --self-contained --no-restore ./src/Impostor.Server/Impostor.Server.csproj /p:PublishSingleFile=true
       - name: Zip Impostor.Server (linux-x64)
         shell: bash
         run: |
           cd ./build/linux-x64
           7z a -r ../linux-x64.zip *
           cd $GITHUB_WORKSPACE
+      - name: Publish Impostor.Server (osx-x64)
+        run: dotnet publish -c release -o ./build/osx-x64 -f netcoreapp3.1 -r osx-x64 --self-contained --no-restore ./src/Impostor.Server/Impostor.Server.csproj /p:PublishSingleFile=true
+      - name: Zip Impostor.Server (osx-x64)
+        shell: bash
+        run: |
+          cd ./build/osx-x64
+          7z a -r ../osx-x64.zip *
+          cd $GITHUB_WORKSPACE
       - name: Create Release
         id: create_release
         uses: actions/create-release@v1
@@ -90,4 +98,13 @@ jobs:
           upload_url: ${{ steps.create_release.outputs.upload_url }}
           asset_path: ./build/linux-x64.zip
           asset_name: Impostor-Server-linux-x64.zip
+          asset_content_type: application/zip
+      - name: Upload Release Asset (osx-x64) Server
+        uses: actions/upload-release-asset@v1
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          upload_url: ${{ steps.create_release.outputs.upload_url }}
+          asset_path: ./build/osx-x64.zip
+          asset_name: Impostor-Server-osx-x64.zip
           asset_content_type: application/zip
\ No newline at end of file
index 36b89dc654a8e5ec654e1e0264bccba4a1357276..d51ecae2d7a3116fca1f65e9b1b76fb574ad9d58 100644 (file)
@@ -32,7 +32,7 @@ jobs:
       - name: Build Impostor.Client
         run: msbuild ./src/Impostor.Client/Impostor.Client.csproj /p:Configuration=Release
       - name: Build Impostor.Server
-        run: dotnet build --no-restore -c Release -f netcoreapp3.1 ./src/Impostor.Server/Impostor.Server.csproj -p:PublishTrimmed=false
+        run: dotnet build --no-restore -c Release -f netcoreapp3.1 ./src/Impostor.Server/Impostor.Server.csproj /p:PublishTrimmed=false
       - name: Test
         run: dotnet test --no-restore -v normal -f netcoreapp3.1 ./src
   deploy: