Skip to content

chore: update changelog for v0.6.4 #27

chore: update changelog for v0.6.4

chore: update changelog for v0.6.4 #27

Workflow file for this run

name: CI
on:
push:
branches:
- main
permissions:
contents: write
jobs:
Pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- uses: dtolnay/rust-toolchain@nightly
with:
targets: wasm32-unknown-unknown
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true
- name: Cache Trunk binary
id: cache-trunk
uses: actions/cache@v4
with:
path: ~/.cargo/bin/trunk
key: trunk-${{ runner.os }}-v0.21.14
- name: Download and install Trunk binary
if: steps.cache-trunk.outputs.cache-hit != 'true'
run: wget -qO- https://github.com/trunk-rs/trunk/releases/download/v0.21.14/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf- && mv trunk ~/.cargo/bin/
- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ runner.os }}-${{ hashFiles('site/package.json') }}
restore-keys: npm-${{ runner.os }}-
- name: Install npm dependencies
working-directory: site
run: npm install
- name: Build Tailwind CSS
working-directory: site
run: npx tailwindcss -i ./input.css -o ./public/styles.css --minify
- name: Build example apps
run: |
for app in apps/*; do
app_name=$(basename "$app")
echo "Building $app_name..."
trunk build --release --public-url "/nightshade/$app_name/" --config "$app/Trunk.toml"
mkdir -p "site/public/$app_name"
cp -r "$app/dist"/* "site/public/$app_name/"
done
- name: Build
working-directory: site
run: trunk build --release --public-url /nightshade/
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: site/dist
single-commit: true