Skip to content

llpeterson is publishing document artifacts πŸš€ #72

llpeterson is publishing document artifacts πŸš€

llpeterson is publishing document artifacts πŸš€ #72

Workflow file for this run

name: Publish Docs Workflow
run-name: ${{ github.actor }} is publishing document artifacts πŸš€
on:
push:
branches:
- master
jobs:
Publish_Docs:
runs-on: ubuntu-latest
steps:
- run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repo
uses: actions/checkout@v4
- name: Validate reST source
run: make test
- name: Build docs
run: make html
- name: Hack to deal with multiversion
run: |
mkdir ${{ github.workspace }}/_build/multiversion/
mkdir ${{ github.workspace }}/_build/multiversion/master
cp -R ${{ github.workspace }}/_build/html/* ${{ github.workspace }}/_build/multiversion/master
ls ${{ github.workspace }}/_build/multiversion/master
- name: Prep private key
run: |
echo "${{ secrets.SSH_PRIVATE_KEY }}" >> ${{ github.workspace }}/id_rsa
chmod 600 ${{ github.workspace }}/id_rsa
- name: Run rsync script
run: |
chmod +x ./.github/scripts/rsync.sh
./.github/scripts/rsync.sh ${{ secrets.SSH_LOGIN_USERNAME }} ${{ secrets.REMOTE_SERVER_IP }} ${{ secrets.SSH_PORT }} ${{ github.workspace }}/_build/multiversion/master /srv/sites/docs.aetherproject.org ${{ github.workspace }}/id_rsa
- run: echo "🍏 This job's status is ${{ job.status }}."