Skip to content

Commit

Permalink
refactor into smaller projects
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-heinz committed Mar 5, 2020
1 parent 2051990 commit 7e74387
Show file tree
Hide file tree
Showing 83 changed files with 86 additions and 5,536 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,24 @@ jobs:

- name: Checkout
uses: actions/checkout@v1

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.0.100
dotnet-version: 3.1.100

- name: Build Release
id: build_release
run: |
VERSION_FILE=${{ github.workspace }}/services.version
VERSION_FILE=${{ github.workspace }}/.version
VERSION=$(<"$VERSION_FILE")
echo ::set-env name=VERSION::$VERSION
echo ::set-env name=VERSION_E::$(echo ${GITHUB_SHA} | cut -c1-8)
mkdir ./release
for RUNTIME in win-x86 win-x64 linux-x64 osx-x64; do
dotnet publish Arrowgene.Services/Arrowgene.Services.csproj /p:Version=$VERSION /p:FromMSBuild=true --runtime $RUNTIME --configuration Release --output ./publish/$RUNTIME-$VERSION
# Server
dotnet publish Arrowgene.Services/Arrowgene.Services.csproj --self-contained true /p:PublishTrimmed=true /p:Version=$VERSION /p:FromMSBuild=true --runtime $RUNTIME --configuration Release --output ./publish/$RUNTIME-$VERSION
# Pack
tar cjf ./release/$RUNTIME-$VERSION.tar.gz ./publish/$RUNTIME-$VERSION
done
Expand All @@ -33,16 +36,16 @@ jobs:
run: |
dotnet pack Arrowgene.Services/Arrowgene.Services.csproj --output ../nupkgs /p:Version=${{ env.VERSION }}
curl -vX PUT -u "sebastian-heinz:${{ secrets.GITHUB_TOKEN }}" -F package=@../nupkgs/Arrowgene.Services.${{ env.VERSION }}.nupkg https://nuget.pkg.github.com/sebastian-heinz/
dotnet nuget push ../nupkgs/Arrowgene.Services.${{ env.VERSION }}.nupkg --api-key ${{ secrets.NUGET_DEPLOY_KEY }} --source https://www.nuget.org/api/v2/package
dotnet nuget push ../nupkgs/Arrowgene.Services.${{ env.VERSION }}.nupkg --source https://www.nuget.org/api/v2/package --api-key ${{ secrets.NUGET_DEPLOY_KEY }}
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: release-${{ env.VERSION }}
release_name: Release ${{ env.VERSION }}
tag_name: release-${{ env.VERSION }}-${{ env.VERSION_E }}
release_name: Release ${{ env.VERSION }}-${{ env.VERSION_E }}
draft: false
prerelease: false

Expand All @@ -53,35 +56,35 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/win-x86-${{ env.VERSION }}.tar.gz
asset_name: win-x86-${{ env.VERSION }}-${{ env.VERSION }}.tar.gz
asset_name: win-x86-${{ env.VERSION }}-${{ env.VERSION_E }}.tar.gz
asset_content_type: application/gzip

- name: Upload win-x64 Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/win-x64-${{ env.VERSION }}.tar.gz
asset_name: win-x64-${{ env.VERSION }}-${{ env.VERSION }}.tar.gz
asset_name: win-x64-${{ env.VERSION }}-${{ env.VERSION_E }}.tar.gz
asset_content_type: application/gzip

- name: Upload linux-x64 Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/linux-x64-${{ env.VERSION }}.tar.gz
asset_name: linux-x64-${{ env.VERSION }}-${{ env.VERSION }}.tar.gz
asset_name: linux-x64-${{ env.VERSION }}-${{ env.VERSION_E }}.tar.gz
asset_content_type: application/gzip

- name: Upload osx-x64 Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/osx-x64-${{ env.VERSION }}.tar.gz
asset_name: osx-x64-${{ env.VERSION }}-${{ env.VERSION }}.tar.gz
asset_name: osx-x64-${{ env.VERSION }}-${{ env.VERSION_E }}.tar.gz
asset_content_type: application/gzip
1 change: 1 addition & 0 deletions .version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.14.0
12 changes: 0 additions & 12 deletions Arrowgene.Services.PingPong/Arrowgene.Services.PingPong.csproj

This file was deleted.

48 changes: 0 additions & 48 deletions Arrowgene.Services.PingPong/Connection.cs

This file was deleted.

12 changes: 0 additions & 12 deletions Arrowgene.Services.PingPong/Handler/PingPongHandler.cs

This file was deleted.

8 changes: 0 additions & 8 deletions Arrowgene.Services.PingPong/IHandler.cs

This file was deleted.

14 changes: 0 additions & 14 deletions Arrowgene.Services.PingPong/Packet.cs

This file was deleted.

110 changes: 0 additions & 110 deletions Arrowgene.Services.PingPong/PingPongConsumer.cs

This file was deleted.

Loading

0 comments on commit 7e74387

Please sign in to comment.