Skip to content

docs: Upload to ref_type subdirectory #10

docs: Upload to ref_type subdirectory

docs: Upload to ref_type subdirectory #10

Workflow file for this run

name: Publish docs
on: [push]
jobs:
build-docs:
name: Build VOLK docs
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: 'recursive'
- name: Install dependencies
run: sudo apt install python3-mako liborc-dev doxygen
- name: Configure
run: mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS="-Werror" -DBUILD_EXECUTABLE=ON ..
- name: Build
run: cmake --build build --target volk_doc
- name: Setup SSH Keys
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.SSH_KEY }}"
mkdir $HOME/.ssh
echo -n "${{ secrets.SSH_KNOWN_HOST }}" > $HOME/.ssh/known_hosts
- name: Upload via SSH
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
TARGET_DIR: "${{ GITHUB_REF_TYPE }}/${{ GITHUB_REF_NAME }}"

Check failure on line 30 in .github/workflows/publish_docs.yml

View workflow run for this annotation

GitHub Actions / Publish docs

Invalid workflow file

The workflow is not valid. .github/workflows/publish_docs.yml (Line: 30, Col: 21): Unrecognized named-value: 'GITHUB_REF_TYPE'. Located at position 1 within expression: GITHUB_REF_TYPE
run: 'tar -cz build/html/ | ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_SERVER }} "mkdir -p /www/${{ env.TARGET_DIR }}/$(date +%Y.%m.%d); cd /www/${{ env.TARGET_DIR }}/$(date +%Y.%m.%d); tar --strip-components=2 -xz; rm /www/${{ env.TARGET_DIR }}/live; cd /www/${{ env.TARGET_DIR }}/$(date +%Y.%m.%d); ln -sf $(date +%Y.%m.%d) live;"'
- uses: actions/upload-artifact@v4
with:
name: volk_docs
path: build/html/