mirror of
https://github.com/lmika/postlist-for-micro.blog.git
synced 2025-07-03 01:09:05 +00:00
28 lines
689 B
YAML
28 lines
689 B
YAML
|
---
|
||
|
name: 'deploy'
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
tags:
|
||
|
- 'v1.*'
|
||
|
|
||
|
jobs:
|
||
|
deploy:
|
||
|
runs-on: docker
|
||
|
steps:
|
||
|
- name: Cloning repo
|
||
|
uses: actions/checkout@v3
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
- name: Push to Github
|
||
|
run: |
|
||
|
mkdir -p $HOME/.ssh
|
||
|
echo "${{ secrets.PUBLISH_TO_GITHUB_KEY }}" > $HOME/.ssh/id_rsa
|
||
|
chmod 600 $HOME/.ssh/id_rsa
|
||
|
chmod 700 $HOME/.ssh
|
||
|
git config --global user.name 'Leon Mika'
|
||
|
git config --global user.email 'lmika@lmika.org'
|
||
|
git remote set-url downstream git@github.com:lmika/postlist-for-micro.blog.git
|
||
|
git push downstream
|
||
|
git push downstream --tags
|