Skip to content

Update build.yml

Update build.yml #25

Workflow file for this run

name: krzemienski/awesome-video/build
on:
push:
branches:
- master
env:
GH_TOKEN: xxxxd4ef
jobs:
awesomebot:
runs-on: ubuntu-latest
container:
image: ruby:latest
steps:
- uses: actions/checkout@v3.5.0
- name: install awesomebot
run: gem install awesome_bot
- name: run awesomebot
run: awesome_bot contents.json --allow-ssl --allow-redirect -a 403,503,429,404,500,443
json-validate:
runs-on: ubuntu-latest
container:
image: python:3.7.12
steps:
- uses: actions/checkout@v3.5.0
- name: install json-spec
run: pip install json-spec
- name: run json validate
run: json validate --schema-file=.github/schema.json --document-file=contents.json
gen-awesome-video:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
image: krzemienski/ruby-node-python:latest

Check failure on line 32 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 32
needs:
- awesomebot
- json-validate
env:
DOCKER_PASSWORD:
DOCKER_USERNAME:
GH_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
CUSTOM_DOMAIN: awesome.video
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base
REQUIREMENTS: requirements.txt
GIT_DISCOVERY_ACROSS_FILESYSTEM: 1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
steps:
- uses: actions/checkout@v4
- name: run README.md gen
run: ruby .github/convert.rb
- name: run database.json gen
run: node .github/upgradeDb.js
- name: run copy readme to docs for site gen
run: make site_link
- name: run static site gen
run: make site_build
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master