A Github Action that synchronize repositories to your own soft-serve server.
name: Soft-Serve
on:
push:
branches:
- master
jobs:
soft-serve:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0 # git cannot push a shallow clone
- name: Push to Soft-Serve
uses: charmbracelet/soft-serve-action@master
with:
name: foobar # soft-serve repository name (defaults to current repository name)
server: my.soft-serve.srv # the server that hosts Soft-Serve
ssh-key: ${{ secrets.SOFT_SERVE_KEY }} # only required if soft-serve is configured to accept certain keys only
ssh-user: abc # defaults to `git`
ssh-port: 23231 # defaults to 22
Part of Charm.
Charm热爱开源 • Charm loves open source