Skip to content

Commit

Permalink
sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
Virv12 committed Feb 3, 2024
1 parent 077b591 commit 7ff541a
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 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 @@ -22,19 +19,16 @@ jobs:
- name: Install asymptote
run: sudo apt-get install -y asymptote

- name: Asymptote workaround
run: sudo ln -sf /tmp/textput.log /tmptexput.log

- 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 }}"
sudo npm config set @olinfo:registry https://git.olinfo.it/api/packages/bortoz/npm/
sudo npm config set -- '//git.olinfo.it/api/packages/bortoz/npm/:_authToken' "${{ secrets.GITEA_TOKEN }}"
- name: Install dependencies
run: yarn install --frozen-lockfile
run: sudo yarn install --frozen-lockfile

- name: Build
run: yarn build
run: sudo yarn build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit 7ff541a

Please sign in to comment.