picosh / scp-publish-action

github action to publish content on pico

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scp-publish-action

Action to publish posts to pico.sh apps.

Required params

  • user: SSH User name
  • key: Private key

Optional params

  • src: Source dir to deploy
  • host: SSH address
  • port: SSH Port

To publish

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.

Example

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 

About

github action to publish content on pico

License:MIT License


Languages

Language:Dockerfile 55.0%Language:Shell 45.0%