Skip to content

Commit d16e69c

Browse files
committed
remove circleci config
1 parent 3d82f8c commit d16e69c

File tree

2 files changed

+4
-130
lines changed

2 files changed

+4
-130
lines changed

.circleci/config.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/build-release.yml

Lines changed: 4 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -20,89 +20,9 @@ jobs:
2020
# set release tag(*.*.*) to env.GIT_TAG
2121
- run: echo ::set-env name=GIT_TAG::${GITHUB_REF#refs/tags/}
2222

23-
# build CommandTools first (use dotnet run command in ZLogger.csproj)
24-
- run: dotnet build -c Release ./tools/CommandTools/CommandTools.csproj
2523
- run: dotnet build -c Release -p:Version=${{ env.GIT_TAG }}
2624
- run: dotnet test -c Release --no-build
27-
- run: dotnet pack ./src/ZLogger/ZLogger.csproj -c Release --no-build -p:Version=${{ env.GIT_TAG }}
28-
29-
# Store artifacts.
30-
- uses: actions/upload-artifact@v1
31-
with:
32-
name: nuget
33-
path: ./src/ZLogger/bin/Release/ZLogger.${{ env.GIT_TAG }}.nupkg
34-
35-
build-unity:
36-
strategy:
37-
matrix:
38-
unity: ['2019.3.9f1']
39-
include:
40-
- unity: 2019.3.9f1
41-
license: UNITY_2019_3
42-
runs-on: ubuntu-latest
43-
container:
44-
# with linux-il2cpp. image from https://hub.docker.com/r/gableroux/unity3d/tags
45-
image: gableroux/unity3d:${{ matrix.unity }}-linux-il2cpp
46-
steps:
47-
- run: apt update && apt install git -y
48-
- uses: actions/checkout@v2
49-
- run: echo -n "$UNITY_LICENSE" >> .Unity.ulf
50-
env:
51-
UNITY_LICENSE: ${{ secrets[matrix.license] }}
52-
- run: /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -manualLicenseFile .Unity.ulf || exit 0
53-
54-
# set release tag(*.*.*) to env.GIT_TAG
55-
- run: echo ::set-env name=GIT_TAG::${GITHUB_REF#refs/tags/}
56-
57-
# Execute scripts: Export Package
58-
- name: Export unitypackage
59-
run: /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod PackageExporter.Export
60-
working-directory: src/ZLogger.Unity
61-
env:
62-
UNITY_PACKAGE_VERSION: ${{ env.GIT_TAG }}
63-
64-
# Store artifacts.
65-
- uses: actions/upload-artifact@v1
66-
with:
67-
name: ZLogger.Unity.${{ env.GIT_TAG }}.unitypackage
68-
path: ./src/ZLogger.Unity/ZLogger.Unity.${{ env.GIT_TAG }}.unitypackage
69-
70-
create-release:
71-
needs: [build-dotnet, build-unity]
72-
runs-on: ubuntu-latest
73-
env:
74-
DOTNET_CLI_TELEMETRY_OPTOUT: 1
75-
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
76-
NUGET_XMLDOC_MODE: skip
77-
steps:
78-
# setup dotnet for nuget push
79-
- uses: actions/setup-dotnet@v1
80-
with:
81-
dotnet-version: 3.1.101
82-
# set release tag(*.*.*) to env.GIT_TAG
83-
- run: echo ::set-env name=GIT_TAG::${GITHUB_REF#refs/tags/}
84-
85-
# Create Releases
86-
- uses: actions/create-release@v1
87-
id: create_release
88-
env:
89-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90-
with:
91-
tag_name: ${{ github.ref }}
92-
release_name: Ver.${{ github.ref }}
93-
94-
# Download (All) Artifacts to current directory
95-
- uses: actions/download-artifact@v2-preview
96-
97-
# Upload to NuGet
98-
- run: dotnet nuget push "./nuget/*.nupkg" -s https://www.nuget.org/api/v2/package -k ${{ secrets.NUGET_KEY }}
99-
100-
# Upload to Releases(unitypackage)
101-
- uses: actions/upload-release-asset@v1
102-
env:
103-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104-
with:
105-
upload_url: ${{ steps.create_release.outputs.upload_url }}
106-
asset_path: ./ZLogger.Unity.${{ env.GIT_TAG }}.unitypackage/ZLogger.Unity.${{ env.GIT_TAG }}.unitypackage
107-
asset_name: ZLogger.Unity.${{ env.GIT_TAG }}.unitypackage
108-
asset_content_type: application/octet-stream
25+
- run: dotnet pack ./src/ConsoleAppFramework/ConsoleAppFramework.csproj -c Release --no-build -p:Version=${{ env.GIT_TAG }}
26+
- run: dotnet pack ./src/ConsoleAppFramework.WebHosting/ConsoleAppFramework.WebHosting.csproj -c Release --no-build -p:Version=${{ env.GIT_TAG }}
27+
- run: dotnet nuget push ./src/ConsoleAppFramework/bin/Release/ConsoleAppFramework.${{ env.GIT_TAG }}.nupkg -s https://www.nuget.org/api/v2/package -k ${{ secrets.NUGET_KEY }}
28+
- run: dotnet nuget push ./src/ConsoleAppFramework.WebHosting/bin/Release/ConsoleAppFramework.WebHosting.${{ env.GIT_TAG }}.nupkg -s https://www.nuget.org/api/v2/package -k ${{ secrets.NUGET_KEY }}

0 commit comments

Comments
 (0)