Fix hsl() syntax for Safari #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD | |
on: | |
push: | |
branches: | |
- "main" | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Check out | |
uses: actions/checkout@v4 | |
- name: 🧮 Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: 📦 Install dependencies | |
run: npm ci | |
- name: 🧽 Lint | |
run: npm run lint | |
- name: 🛠️ Build | |
run: make -C play index.html ROADROLLER_FLAGS=-O2 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: index.html | |
path: play/index.html | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Check out | |
uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: index.html | |
path: gh-pages | |
- name: 🚀 Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: gh-pages | |
package: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: index.html | |
- run: sudo apt-get install -y p7zip-full | |
- name: 📦 Package | |
run: 7z a -mx=9 -mfb=256 -mpass=15 index.zip index.html | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: index.zip | |
path: index.zip |