Update yml file to latest workflow
This commit is contained in:
parent
4e583a4a5a
commit
232b99a962
|
@ -1,23 +1,34 @@
|
||||||
name: asdf-firmware
|
name: asdf-firmware
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- asdf-release
|
|
||||||
- asdf-build-test
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_firmware:
|
build_firmware:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: { image: alpine }
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: sh
|
||||||
steps:
|
steps:
|
||||||
- run: apt-get install gcc-avr binutils-avr avr-libc
|
- name: install_git_and_bash
|
||||||
- run: snap install cmake
|
run: apk add bash git rsync
|
||||||
- run: pip install -U sphinx sphinx-rtd-theme sphinx-autodoc-typehints
|
|
||||||
- run: pip install -U sphinxcontrib-napoleon
|
|
||||||
- run: pip install -U toml build
|
|
||||||
- run: pip install pipenv
|
|
||||||
|
|
||||||
# Create the build directories, make all targets, and copy
|
- name: checkout
|
||||||
# hex files to sphinx source directory for download links
|
uses: actions/checkout@v2
|
||||||
- run: bash ./make-targets.sh -a -p -i -s
|
|
||||||
- run: mkdir public
|
- run: apk add gcc-avr binutils-avr avr-libc
|
||||||
- run: sphinx-build -b html docs/source public
|
- run: apk add cmake make
|
||||||
|
- run: apk add python3 py3-pip
|
||||||
|
- run: pip install -U sphinx sphinx-rtd-theme sphinx-autodoc-typehints
|
||||||
|
- run: pip install -U sphinxcontrib-napoleon
|
||||||
|
- run: pip install -U toml
|
||||||
|
# - run: pip install pipenv
|
||||||
|
# Create the build directories, make all targets, and copy
|
||||||
|
# hex files to sphinx source directory for download links
|
||||||
|
- run: cd firmware/asdf; /bin/bash ./make-targets.sh -a -i -s
|
||||||
|
- run: mkdir public; touch public/.nojekyll
|
||||||
|
- run: sphinx-build -b html firmware/asdf/docs/source public
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
|
with:
|
||||||
|
folder: public
|
||||||
|
|
Loading…
Reference in New Issue