Skip to content

Commit

Permalink
build: build page on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
blaberg committed Dec 26, 2024
1 parent 6927b0c commit b2f41d3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 313 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Upload static files as artifact
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Tailwind CSS CLI
run: npm install -g tailwindcss
- name: build
run: go run cmd/generator/main.go
- name: Upload static files as artifacts
uses: actions/upload-pages-artifact@v3
id: deployment
with:
Expand Down
2 changes: 1 addition & 1 deletion cmd/generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func main() {
}); err != nil {
panic(err)
}
cmd := exec.Command("tailwindcss", "-i", "input.css", "-o", "../../public/output.css", "-m")
cmd := exec.Command("npm", "tailwindcss", "-i", "input.css", "-o", "../../public/output.css", "-m")
cmd.Dir = "cmd/generator"
if err := cmd.Run(); err != nil {
panic(err)
Expand Down
296 changes: 0 additions & 296 deletions public/my-first-recipe/index.html

This file was deleted.

15 changes: 0 additions & 15 deletions public/my-second-recipe/index.html

This file was deleted.

0 comments on commit b2f41d3

Please sign in to comment.