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 2adfd37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ 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
- 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
executable_compression: upx
pre_command: ./tailwindcss-linux-x64 -i tailwind.css -o static/tailwind-bundle.min.css --minify
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 2adfd37

Please sign in to comment.