Skip to content

Commit

Permalink
properly build tailwind on github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Dec 2, 2023
1 parent 89763b1 commit 2268bf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ jobs:
goos: windows
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.40
- run: wget https://github.com/tailwindlabs/tailwindcss/releases/download/v3.3.5/tailwindcss-linux-x64
- run: chmod +x tailwindcss-linux-x64
- run: ./tailwindcss-linux-x64 -i tailwind.css -o static/tailwind-bundle.min.css --minify
- uses: wangyoucao577/go-release-action@v1.41
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
overwrite: true
md5sum: false
sha256sum: false
compress_assets: false
compress_assets: true
1 change: 0 additions & 1 deletion render_embedjs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

func renderEmbedjs(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/javascript")

fileContent, _ := static.ReadFile("static/embed.js")
w.Write(fileContent)
}

0 comments on commit 2268bf0

Please sign in to comment.