Compare commits
2 commits
084743df2c
...
f3b8521c17
Author | SHA1 | Date | |
---|---|---|---|
f3b8521c17 | |||
40aa60fbf3 |
3 changed files with 19 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
automate-ifc:
|
||||
runs-on: self-hosted
|
||||
publish:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Install checkout
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
@ -10,16 +10,23 @@ jobs:
|
|||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: https://github.com/tj-actions/changed-files@v42
|
||||
- name: Do computations
|
||||
- name: Update website
|
||||
env:
|
||||
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
run: |
|
||||
if [[ ! -d web ]]
|
||||
then
|
||||
git clone https://git.forgeons.org/rvba/web
|
||||
fi
|
||||
cd web && git pull
|
||||
if: ${{ secrets.WEB != '' }}
|
||||
run: |
|
||||
git clone --recursive https://rvba:${{ secrets.WEB }}@git.forgeons.org/rvba/web
|
||||
cd web
|
||||
git config user.email "ci@git.forgeons.org" ; git config user.name "forgeons-web"
|
||||
cd scripts
|
||||
for file in ${ALL_CHANGED_FILES}; do
|
||||
./web.sh "$file"
|
||||
|
||||
cd ..
|
||||
git add .
|
||||
if git diff-index --quiet HEAD ; then
|
||||
echo Nothing changed, not pushing
|
||||
else
|
||||
git commit -m 'publish' -a
|
||||
git push
|
||||
fi
|
3
dist/.gitignore
vendored
3
dist/.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*.html
|
||||
|
||||
|
||||
|
|
1
dist/index.html
vendored
Normal file
1
dist/index.html
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
<h1 id="forgeons">Forgeons !</h1>
|
Loading…
Reference in a new issue