Skip to content

Fix guide github action (#727) #124

Fix guide github action (#727)

Fix guide github action (#727) #124

Workflow file for this run

name: Guide
on:
push:
branches:
- master
jobs:
vuepress:
runs-on: ubuntu-latest
container:
options: --user root

Check failure on line 12 in .github/workflows/guide.yml

View workflow run for this annotation

GitHub Actions / Guide

Invalid workflow file

The workflow is not valid. .github/workflows/guide.yml (Line: 12, Col: 7): Container image cannot be empty
steps:
- uses: actions/checkout@v2
- name: Install vuepress
run: |
sudo apt update
sudo apt install yarn -y
yarn global add vuepress
yarn add vue-template-compiler
- name: Build
run: |
vuepress build
working-directory: ./guide
- name: Push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git init
git add -A
git commit -m 'deploy'
git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/bethgelab/foolbox.git master:gh-pages
working-directory: ./guide/.vuepress/dist