From 5a0e837b93eaa924445d33942a407d595674be1b Mon Sep 17 00:00:00 2001 From: Tarin Mahmood <34904+tmahmood@users.noreply.github.com> Date: Thu, 25 Jul 2024 21:17:41 +0600 Subject: [PATCH] I do not like YML --- .github/workflows/rust.yml | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9b03ade..22d2bcb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,23 +21,21 @@ jobs: env: TAG_NAME: nightly-tag-${{ steps.date.outputs.date }} RELEASE_NAME: latest-release-${{ steps.date.outplatestte }} - - uses: actions/checkout@v4 - - run: curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 && mv tailwindcss-linux-x64 tailwindcss && chmod +x tailwindcss - - run: cd frontend && npm install && npm install rollup --global && cd .. - - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: nightly - - run: | - cargo build --release - cp target/release/taskwarrior-web taskwarrior-web - tar czf tw-web-$RELEASE_NAME.tar.gz dist taskwarrior-web + - name: Setting up + - uses: actions/checkout@v4 + - run: curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 && mv tailwindcss-linux-x64 tailwindcss && chmod +x tailwindcss + - run: cd frontend && npm install && npm install rollup --global && cd .. + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: nightly + - name: Building + - run: | + cargo build --release + cp target/release/taskwarrior-web taskwarrior-web + tar czf tw-web-$RELEASE_NAME.tar.gz dist taskwarrior-web - name: Release + uses: softprops/action-gh-release@v2 with: - - name: Publish Release - uses: softprops/action-gh-release@v2 - with: - prerelease: true - tag_name: ${{ env.TAG_NAME }} - files: tw-web-$RELEASE_NAME.tar.gz - - uses: softprops/action-gh-release@v2 + prerelease: true + tag_name: ${{ env.TAG_NAME }} + files: tw-web-$RELEASE_NAME.tar.gz \ No newline at end of file