.profile/.gitea/workflows/build.yaml
Simon Vieille 12a282c82d
Some checks failed
Build profile / Build (push) Failing after 46s
[wip] gitea actions
2023-10-02 22:08:54 +02:00

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