From 98914eb1d5b12b4f16c6e2b6f147d2fa466b46f0 Mon Sep 17 00:00:00 2001 From: Dave Date: Wed, 7 Sep 2022 21:28:19 -0500 Subject: [PATCH 1/3] Add dash before trigger branch names --- .github/workflows/asdf-firmware.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/asdf-firmware.yml b/.github/workflows/asdf-firmware.yml index df87178..df18a73 100644 --- a/.github/workflows/asdf-firmware.yml +++ b/.github/workflows/asdf-firmware.yml @@ -2,8 +2,8 @@ name: asdf-firmware on: push: branches: - asdf-release - asdf-build-test + - asdf-release + - asdf-build-test uses: lukka/get-cmake@latest From 4e583a4a5a9d1ddb80a5e863a146c32f07147d16 Mon Sep 17 00:00:00 2001 From: Dave Date: Wed, 7 Sep 2022 21:29:43 -0500 Subject: [PATCH 2/3] Remove unsed "uses" --- .github/workflows/asdf-firmware.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/asdf-firmware.yml b/.github/workflows/asdf-firmware.yml index df18a73..aa3358d 100644 --- a/.github/workflows/asdf-firmware.yml +++ b/.github/workflows/asdf-firmware.yml @@ -5,8 +5,6 @@ on: - asdf-release - asdf-build-test -uses: lukka/get-cmake@latest - jobs: build_firmware: runs-on: ubuntu-latest From 232b99a962af34347ec4aaa7a0d472019f43b676 Mon Sep 17 00:00:00 2001 From: Dave Date: Wed, 7 Sep 2022 21:31:46 -0500 Subject: [PATCH 3/3] Update yml file to latest workflow --- .github/workflows/asdf-firmware.yml | 43 ++++++++++++++++++----------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/.github/workflows/asdf-firmware.yml b/.github/workflows/asdf-firmware.yml index aa3358d..d2f0ca5 100644 --- a/.github/workflows/asdf-firmware.yml +++ b/.github/workflows/asdf-firmware.yml @@ -1,23 +1,34 @@ name: asdf-firmware -on: - push: - branches: - - asdf-release - - asdf-build-test +on: [push] jobs: build_firmware: runs-on: ubuntu-latest + container: { image: alpine } + defaults: + run: + shell: sh steps: - - run: apt-get install gcc-avr binutils-avr avr-libc - - run: snap install cmake - - 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 + - name: install_git_and_bash + run: apk add bash git rsync - # Create the build directories, make all targets, and copy - # hex files to sphinx source directory for download links - - run: bash ./make-targets.sh -a -p -i -s - - run: mkdir public - - run: sphinx-build -b html docs/source public + - name: checkout + uses: actions/checkout@v2 + + - run: apk add gcc-avr binutils-avr avr-libc + - 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