Skip to content

Commit

Permalink
Set up GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlgo11 committed Dec 1, 2023
1 parent ca81ee5 commit f305ec3
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 326 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: push
jobs:
build:
name: Build & Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Convert SCSS
run: |
npm install sass html-minifier
npx sass index.scss:index.css --style compressed
npx html-minifier --collapse-whitespace --remove-comments --remove-script-type-attributes -o index.html index.html
- name: Prepare publish directory
run: |
mkdir public
cp index.{html,css,css.map} public/
- uses: actions/upload-pages-artifact@v1
with:
path: public/
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1
303 changes: 0 additions & 303 deletions index.css

This file was deleted.

1 change: 0 additions & 1 deletion index.css.map

This file was deleted.

Loading

0 comments on commit f305ec3

Please sign in to comment.