Skip to content

Commit

Permalink
Removed embeding
Browse files Browse the repository at this point in the history
  • Loading branch information
spolischook committed Nov 29, 2023
1 parent 6499ecf commit cb86a94
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,6 @@ jobs:
- name: Build Tailwind CSS
run: npm run build

- name: Embed CSS into HTML
run: |
# Read the CSS file
CSS=$(cat css/style.css)
# Replace the line containing the <link> tag with the <style> tag
awk -v css="$CSS" '{
if ($0 ~ "<link rel=\"stylesheet\" href=\"css/style.css\">") {
print "<style>" css "</style>"
} else {
print
}
}' index.html > index_with_embedded_css.html
# Replace the original HTML file with the new one
mv index_with_embedded_css.html index.html

- name: Deploy to S3
uses: jakejarvis/s3-sync-action@master
Expand Down

0 comments on commit cb86a94

Please sign in to comment.