.profile/.gitea/workflows/build.yaml
Simon Vieille ca9fc52d3b
All checks were successful
Build profile / Build (push) Successful in 6s
[wip] gitea actions
2023-10-02 22:33:32 +02:00

30 lines
883 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 "${{ secrets.SSH_PRIVATE_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
ls -lah bin/
./bin/rss -f https://www.deblan.io/RSS # | head -n 10 >> README.md
cat README.md
- run: |
git status
git add .
git commit -m "Build ${{ gitea.job }}" || true
git remote add repo git@gitnet.fr:deblan/.profile.git
#git push repo main || true