From 4448f640e6d50a216a56e5086513450d321adba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kaarlo=20R=C3=A4ih=C3=A4?= Date: Wed, 9 Jun 2021 18:37:55 +0300 Subject: [PATCH] Add build-win-release.yml Hopefully now I get automatic releases --- .github/workflows/build-win-release.yml | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build-win-release.yml diff --git a/.github/workflows/build-win-release.yml b/.github/workflows/build-win-release.yml new file mode 100644 index 0000000..68bd512 --- /dev/null +++ b/.github/workflows/build-win-release.yml @@ -0,0 +1,35 @@ +name: Build-Win-Release + +on: + push: + tags: + - v1.* # Push events to v1.0, v1.1, and v1.9 tags + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build a release + run: dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true --self-contained true -o publish + - name: Rename and move binary + run: mv publish/Dithery-cli.exe dithery.exe + - name: Install zip + run: sudo apt install zip + - name: Package + run: zip -9 release.zip dithery.exe + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + files: | + release.zip +