[wip] gitea actions

This commit is contained in:
Simon Vieille 2023-10-02 22:05:36 +02:00
parent f7fd748041
commit c2221ede03
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -5,6 +5,21 @@ jobs:
Build:
runs-on: ubuntu-latest
steps:
- run: whereis git
- run: whereis wget
- run: id -a
- 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