From 6750787bf93aa05eef3c86efd70f71dd05b00bea Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Sat, 3 Sep 2022 17:51:47 -0700 Subject: [PATCH] build action --- .github/workflows/build.yml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..564978f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,45 @@ +name: Check frontend + +on: + push: + paths-ignore: + - '**.lock' + - '**.rs' + - '**.toml' + pull_request: + paths-ignore: + - '**.lock' + - '**.rs' + - '**.toml' + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + build: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: setup node + uses: actions/setup-node@v1 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + + - name: Install deps and build + run: yarn && yarn build --debug + + - name: Compress build + uses: vimtor/action-zip@v1 + with: + files: src-tauri/target/debug/Cultivation.exe src-tauri/target/debug/lang/ src-tauri/target/debug/keys/ + recursive: true + dest: Cultivation.zip + + - name: Upload build + uses: actions/upload-artifact@v3 + with: + name: Cultivation