28 lines
818 B
YAML
28 lines
818 B
YAML
name: Build profile
|
|
on: [push]
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
- run: |
|
|
mkdir -p ~/.ssh
|
|
eval $(ssh-agent -s)
|
|
echo "$SSH_PRIV_KEY" | tr -d '\r' | ssh-add -
|
|
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
|
- run: |
|
|
git config --global user.email ci@gitnet.fr
|
|
git config --global user.name CI
|
|
- run: |
|
|
cp README.tpl.md README.md
|
|
./bin/rss -f https://www.deblan.io/RSS | head -n 10 >> README.md
|
|
- run: |
|
|
git status
|
|
git add .
|
|
git commit -m "Build ${CI_BUILD_NUMBER}" || true
|
|
git remote add repo git@gitnet.fr:deblan/.profile.git
|
|
git push repo main || true
|
|
|