Compare commits

...

10 Commits
master ... prod

Author SHA1 Message Date
oiseauroch
76800f5a88 fix wrong merge
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m13s
2024-07-09 17:52:45 +02:00
oiseauroch
f5d0b72e18 add ignore file
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m9s
2024-07-07 20:57:02 +02:00
oiseauroch
75d19d8f49 add date
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m1s
2024-07-07 20:51:41 +02:00
oiseauroch
debbaa23fb add shebang for alpine
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m10s
2024-07-07 20:46:12 +02:00
oiseauroch
7d6902a21c add cd
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m8s
2024-07-07 20:36:26 +02:00
oiseauroch
eea6d617e8 add script to update
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m12s
2024-07-07 19:47:55 +02:00
oiseauroch
ba528a52ab try fix action
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m11s
2024-07-06 11:31:14 +02:00
oiseauroch
169b9d16fb test gitea actions
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2m46s
2024-07-06 11:12:39 +02:00
7e65a98992 Actualiser .gitea/workflows/test.yaml 2024-07-06 11:01:49 +02:00
oiseauroch
fa8ec65e90 add workflow
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 49s
2024-07-05 16:16:36 +02:00
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,30 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
push:
branches:
- 'master'
- 'prod'
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
with:
github-server-url: 'https://yuno.oiseauroch.fr/gitea/'
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: git config user.name "gitea[bot]"
- run: git config user.email "gitea[bot]@yuno.oiseauroch.fr"
- run: git switch production
- run: git merge prod
- run: git push origin auto-prod

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
update.log
*.update

8
update_site.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/ash
cd /websites/piquemouche
date >> update.log
git fetch >> update.log
git restore . >> update.log
git merge origin/master >> update.log
sed -i 's#class="align-left">www.piquemouche.fr<br>#><a href="https://piquemouche.fr">piquemouche.fr</a>#g' *.html >> update.log
echo '.footer__copyright ul{margin-left:2rem}.footer__copyright{text-transform:none!important;display:flex;flex-direction:row;justify-content:space-around}.footer__copyright>p{display:none}.footer__copyright ul>li{list-style:none}.footer__copyright ul>li:first-child{font-size:1.5em;font-weight:700}.footer__copyright{margin-left:10%;margin-right:10%}body{background: #FFF8D6;}' >> assets/css/style.css