Skip to content

Commit

Permalink
Updated GitHub Actions config after set-env was disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
pinam45 committed Dec 13, 2020
1 parent 4843fe5 commit de9c114
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
submodules: true

- name: Download Doxygen
id: doxygen
id: download
shell: cmake -P {0}
run: |
set(doxygen_version $ENV{DOXYGEN_VERSION})
Expand All @@ -30,19 +30,22 @@ jobs:
file(DOWNLOAD "${doxygen_url}" ./doxygen.tar.gz SHOW_PROGRESS)
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./doxygen.tar.gz)
file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}/${doxygen_dir}" doxygen_dir)
message("::set-env name=DOXYGEN_DIR::${doxygen_dir}")
message("::set-output name=doxygen_dir::${doxygen_dir}")
- name: Configure
id: configure
run: |
set -eu
PATH=${DOXYGEN_DIR}:${PATH}
PATH=${{ steps.download.outputs.doxygen_dir }}:${PATH}
cmake -S . -B build
- name: Build
id: build
run: |
set -eu
PATH=${DOXYGEN_DIR}:${PATH}
PATH=${{ steps.download.outputs.doxygen_dir }}:${PATH}
cmake --build build --target dynamic_bitset_docs
echo "::set-env name=HTML_DOC_DIR::${GITHUB_WORKSPACE}/build/docs/html"
echo "::set-output name=html_doc_dir::${GITHUB_WORKSPACE}/build/docs/html"
- name: Deploy
id: deploy
run: |
set -eu
mkdir tmp-git
Expand All @@ -54,7 +57,7 @@ jobs:
git fetch origin
git checkout -t origin/gh-pages
rm -rf ./*
cp -r "${HTML_DOC_DIR}/." .
cp -r "${{ steps.build.outputs.html_doc_dir }}/." .
git add -A .
if git commit -m "Update"; then
git push
Expand Down

0 comments on commit de9c114

Please sign in to comment.