Skip to content

build(deps): bump actions/download-artifact in /.github/workflows #27

build(deps): bump actions/download-artifact in /.github/workflows

build(deps): bump actions/download-artifact in /.github/workflows #27

Workflow file for this run

name: Docs
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Cache pip
uses: actions/cache@v1
with:
path: ~/.cache/pip # This path is specific to Ubuntu
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: pip install -r requirements.txt
- name: Build site
run: mkdocs build
- uses: actions/upload-artifact@v1
with:
name: site
path: site
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
needs: build
steps:
- uses: actions/[email protected]
with:
name: site
- name: Debug print
run: ls site
- name: copy file via ssh key
uses: appleboy/scp-action@master
env:
HOST: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
PORT: ${{ secrets.PORT }}
KEY: ${{ secrets.KEY }}
with:
source: "site/*"
target: ${{ secrets.REMOTE_PATH }}
overwrite: true
strip_components: 1