From ce0d7b0b84ec80573be47b9038e3b7b247d8d9e5 Mon Sep 17 00:00:00 2001 From: CodingTil <36734749+CodingTil@users.noreply.github.com> Date: Sat, 16 Mar 2024 14:39:51 +0100 Subject: [PATCH] Pipeline Artifact --- .github/workflows/rust.yml | 11 +++++++++++ .github/workflows/tailwind.yml | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 95ff0d3..f14a81b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,6 +2,12 @@ on: push name: Build and test +on: + workflow_run: + workflows: ["Tailwind"] + types: + - completed + jobs: build_and_test: runs-on: ubuntu-latest @@ -13,6 +19,11 @@ jobs: run: cargo install --locked trunk - name: Clean run: cargo clean + - name: Download CSS artifact + uses: actions/download-artifact@v2 + with: + name: tailwind-css + path: style/ - name: Build run: trunk build --release --verbose diff --git a/.github/workflows/tailwind.yml b/.github/workflows/tailwind.yml index 727524e..5867e92 100644 --- a/.github/workflows/tailwind.yml +++ b/.github/workflows/tailwind.yml @@ -16,4 +16,9 @@ jobs: - name: Install Dependencies run: npm install @tailwindcss/typography @tailwindcss/forms @tailwindcss/aspect-ratio - name: Build - run: npx tailwind -o style/main.css \ No newline at end of file + run: npx tailwind -o style/main.css + - name: Upload CSS artifact + uses: actions/upload-artifact@v2 + with: + name: tailwind-css + path: style/main.css \ No newline at end of file