GitHub Action
lists publish action
v1.0.3
Latest version
Important
Action to publish posts to pico.sh apps.
user
: SSH User namekey
: Private key
src
: Source dir to deployhost
: SSH addressport
: SSH Port
You will need to copy your ssh private key into a secret in your github repo. This means your key will be accessible from github. It is highly recommended that you create a separate key specifically for github that way the private key will only have access to your account if there is a breach on github.
name: ci
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Build and Deploy
steps:
- uses: actions/checkout@master
- name: publish to prose
uses: neurosnap/scp-publish-action@main
with:
user: erock
key: ${{ secrets.PRIVATE_KEY }}
src: '*.txt'
host: prose.sh
port: 2323