From b42b35a279aa05be5ff78b4c99124935b795ecf5 Mon Sep 17 00:00:00 2001 From: Martin Askestad Date: Thu, 20 Jul 2023 14:57:09 +0200 Subject: [PATCH] Update github action --- .github/workflows/build.yaml | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 753f52d..389de7a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,4 @@ -name: Build and Test +name: Check code on: pull_request: @@ -68,28 +68,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: clippy - args: -- -D warnings - - build: - needs: [test] - runs-on: windows-latest - if: github.ref == 'refs/heads/master' - - steps: - - uses: actions/checkout@master - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - uses: actions-rs/cargo@v1 - with: - command: build - args: --release - - name: Create zip file - run: | - $outputPath = "${{ github.workspace }}\grout-wm.zip" - Compress-Archive -Path "${{ github.workspace }}\target\release\grout-wm.exe","${{ github.workspace }}\target\release\user.yaml","${{ github.workspace }}\target\release\default.yaml","${{ github.workspace }}\README.md" -DestinationPath grout-wm.zip - shell: pwsh - - name: Create release - uses: softprops/action-gh-release@v1 - with: - files: "${{ github.workspace }}/grout-wm.zip" + args: -- -D warnings \ No newline at end of file