From 497a0b0b7b845a3ceaac9a409cfa4ab2b723695a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Fri, 7 Jul 2023 14:09:45 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2565ce6..afa44863 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,29 +8,34 @@ on: jobs: build: + name: 🔨 Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - name: Use Python 3.x + - name: 🚚 Checkout + uses: actions/checkout@v3 + - name: 🐍 Use Python 3.x uses: actions/setup-python@v3.1.4 with: python-version: 3.x cache: pip - - run: python -m venv venv + - name: ⏬ Install Python dependencies + run: python -m venv venv - run: ./venv/bin/pip install -r requirements.txt - - name: Use Node.js 18.16.x + - name: 🐉 Use Node.js 18.16.x uses: actions/setup-node@v3 with: node-version: 18.16.x cache: 'npm' - - run: npm ci + - name: ⏬ Install Node dependencies + run: npm ci - - run: npm run minify-icons - - run: npm run build + - name: 🔥 Optimize icon font + run: npm run minify-icons + - name: 🔨 Build site + run: npm run build - - name: Upload build artifacts + - name: 📦 Upload build artifacts uses: actions/upload-artifact@v3.1.2 with: name: build