From 91fcbe4e41c3b2eb47f919785ad14b54624692ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Fri, 7 Jul 2023 13:12:24 +0200 Subject: [PATCH] add build workflow --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..b2565ce6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: Build + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - 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 + - run: ./venv/bin/pip install -r requirements.txt + + - name: Use Node.js 18.16.x + uses: actions/setup-node@v3 + with: + node-version: 18.16.x + cache: 'npm' + - run: npm ci + + - run: npm run minify-icons + - run: npm run build + + - name: Upload build artifacts + uses: actions/upload-artifact@v3.1.2 + with: + name: build + path: build