Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
/ scp-publish-action Public archive

github action to publish content on pico

License

Notifications You must be signed in to change notification settings

picosh/scp-publish-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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