Skip to content

Commit

Permalink
Use docker
Browse files Browse the repository at this point in the history
  • Loading branch information
bortoz committed Feb 3, 2024
1 parent 98dc2c0 commit 65c33bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Deploy

on:
push:
branches:
- main
on: push

jobs:
deploy:
Expand All @@ -14,21 +11,12 @@ jobs:
with:
submodules: 'recursive'

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18

- name: Setup package registry
run: |
npm config set @olinfo:registry https://git.olinfo.it/api/packages/bortoz/npm/
npm config set -- '//git.olinfo.it/api/packages/bortoz/npm/:_authToken' "${{ secrets.GITEA_TOKEN }}"
- name: Install dependencies
run: yarn install --frozen-lockfile
echo "//git.olinfo.it/api/packages/bortoz/npm/:_authToken=${{ secrets.GITEA_TOKEN }}" >> .npmrc
- name: Build
run: yarn build
run: docker run -v .:/scolastiche archlinux /scolastiche/tools/build.sh

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
10 changes: 10 additions & 0 deletions tools/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -xe

export DEBIAN_FRONTEND=noninteractive

cd scolastiche
pacman -Sy yarn asymptote
yarn install --frozen-lockfile
yarn playwright install-deps
yarn build

0 comments on commit 65c33bc

Please sign in to comment.