Skip to content

Commit

Permalink
Pipeline Artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingTil committed Mar 16, 2024
1 parent d104721 commit ce0d7b0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/tailwind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: npx tailwind -o style/main.css
- name: Upload CSS artifact
uses: actions/upload-artifact@v2
with:
name: tailwind-css
path: style/main.css

0 comments on commit ce0d7b0

Please sign in to comment.