diff options
author | Kevin Robertson <Kevin-Robertson@users.noreply.github.com> | 2022-08-10 22:59:45 -0400 |
---|---|---|
committer | Kevin Robertson <Kevin-Robertson@users.noreply.github.com> | 2022-08-10 22:59:45 -0400 |
commit | 0fecc1819aed1753c03e120a514a8c6b8f6698d8 (patch) | |
tree | 661d9e60b6b6a662df2c9a2bbadd384f8a743fc7 /.github/workflows/release.yml | |
parent | 82be2377ade47a4e325217b4144878a59595e750 (diff) | |
download | Inveigh-0fecc1819aed1753c03e120a514a8c6b8f6698d8.tar.gz Inveigh-0fecc1819aed1753c03e120a514a8c6b8f6698d8.zip |
bug fixesv2.0.5
bug fixes
switched .net 4.5 to 4.6.2
switched .net 5.0 to 6.0
added workflow for release assemblies
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r-- | .github/workflows/release.yml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b896911 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,57 @@ +name: Release + +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: windows-latest + defaults: + run: + shell: bash + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup .NET Core SDK + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + + - name: Restore Dependencies + run: dotnet restore + + - name: Build Windows + run: | + VERSION=${{ github.ref_name }} + dotnet build -c release -p:Version=${VERSION:1} + + - name: Zip + run: | + 7z a -tzip -mx9 Inveigh-net3.5-win-64-${{ github.ref_name }}.zip $PWD/Inveigh/bin/release/net35/* + 7z a -tzip -mx9 Inveigh-net4.6.2-win-64-${{ github.ref_name }}.zip $PWD/Inveigh/bin/release/net462/* + 7z a -tzip -mx9 Inveigh-net6.0-win-64-${{ github.ref_name }}.zip $PWD/Inveigh/bin/release/net6.0/* -x!*/ + + - name: Publish Linux/macOS + run: | + VERSION=${{ github.ref_name }} + dotnet publish --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:Version=${VERSION:1} -r linux-x64 -f net6.0 -p:AssemblyName=inveigh -c release + dotnet publish --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:Version=${VERSION:1} -r osx-x64 -f net6.0 -p:AssemblyName=inveigh -c release + + - name: Zip macOS + run: | + tar -czvf Inveigh-net6.0-linux-x64-trimmed-single-${{ github.ref_name }}.tar.gz --directory=$PWD/Inveigh/bin/release/net6.0/linux-x64/publish/ . + tar -czvf Inveigh-net6.0-osx-x64-trimmed-single-${{ github.ref_name }}.tar.gz --directory=$PWD/Inveigh/bin/release/net6.0/osx-x64/publish/ . + + - name: Release .zip + uses: softprops/action-gh-release@v1 + with: + files: "Inveigh*.zip" + + - name: Release tar.gz + uses: softprops/action-gh-release@v1 + with: + files: "Inveigh*.tar.gz" |