-
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (26 loc) · 913 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
on: push
jobs:
build:
name: Build & Publish
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
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/
wget https://codeload.github.com/2factorauth/branding/zip/refs/heads/master -O public/branding.zip
- uses: actions/upload-pages-artifact@v1
with:
path: public/
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1