mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-04 09:02:50 +00:00
Update build.yml
This commit is contained in:
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@@ -8,29 +8,34 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: 🔨 Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: 🚚 Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
- name: Use Python 3.x
|
- name: 🐍 Use Python 3.x
|
||||||
uses: actions/setup-python@v3.1.4
|
uses: actions/setup-python@v3.1.4
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
cache: pip
|
cache: pip
|
||||||
- run: python -m venv venv
|
- name: ⏬ Install Python dependencies
|
||||||
|
run: python -m venv venv
|
||||||
- run: ./venv/bin/pip install -r requirements.txt
|
- 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
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18.16.x
|
node-version: 18.16.x
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm ci
|
- name: ⏬ Install Node dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
- run: npm run minify-icons
|
- name: 🔥 Optimize icon font
|
||||||
- run: npm run build
|
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
|
uses: actions/upload-artifact@v3.1.2
|
||||||
with:
|
with:
|
||||||
name: build
|
name: build
|
||||||
|
|||||||
Reference in New Issue
Block a user