Merge pull request 'Add Github and Gitea links to french translation' (#46) from add-github-gitea-links into fr-translation
Reviewed-on: #46
This commit is contained in:
commit
2c4ce38359
50
.gitea/workflows/deploy.yml
Normal file
50
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
name: Hugo Build and Deploy (FR)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- fr-translation
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- fr-translation
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test_build:
|
||||||
|
name: Build Hugo Site
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: klakegg/hugo:0.111.3-ext-alpine-ci
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Check Hugo Version and Build
|
||||||
|
run: |
|
||||||
|
hugo version
|
||||||
|
hugo --minify
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
name: Deploy to Server (fr-translation)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: test_build
|
||||||
|
if: github.ref == 'refs/heads/fr-translation'
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup SSH and Deploy
|
||||||
|
run: |
|
||||||
|
eval "$(ssh-agent -s)"
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||||
|
chmod 700 ~/.ssh
|
||||||
|
ssh-keyscan "$SSH_HOST" >> ~/.ssh/known_hosts
|
||||||
|
chmod 644 ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
ssh -p "$SSH_PORT" "$SSH_USER@$SSH_HOST" 'cd repo-fr && git stash && git pull --force origin fr-translation && ./build.sh'
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
SSH_USER: ${{ secrets.SSH_USER }}
|
||||||
|
SSH_HOST: ${{ secrets.SSH_HOST }}
|
||||||
|
SSH_PORT: ${{ secrets.SSH_PORT }}
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -18,3 +18,6 @@ hugo.linux
|
|||||||
# Temporary lock file while building
|
# Temporary lock file while building
|
||||||
/.hugo_build.lock
|
/.hugo_build.lock
|
||||||
*.webp
|
*.webp
|
||||||
|
|
||||||
|
# Aider
|
||||||
|
.aider*
|
||||||
|
@ -1,30 +0,0 @@
|
|||||||
image: alpine:latest
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- test
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
test_build:
|
|
||||||
stage: test
|
|
||||||
image: klakegg/hugo:0.111.3-ext-alpine-ci
|
|
||||||
script:
|
|
||||||
- hugo version
|
|
||||||
- hugo --minify
|
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
- fr-translation
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
stage: deploy
|
|
||||||
before_script:
|
|
||||||
- 'command -v ssh-agent >/dev/null || ( apk add --update openssh )'
|
|
||||||
- eval $(ssh-agent -s)
|
|
||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
|
||||||
- mkdir -p ~/.ssh
|
|
||||||
- chmod 700 ~/.ssh
|
|
||||||
- ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts
|
|
||||||
- chmod 644 ~/.ssh/known_hosts
|
|
||||||
script:
|
|
||||||
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd repo-fr && git stash && git pull --force origin fr-translation && ./build.sh"
|
|
||||||
only:
|
|
||||||
- fr-translation
|
|
@ -7,9 +7,15 @@
|
|||||||
<li class="zerostatic">
|
<li class="zerostatic">
|
||||||
<img src="/pics/yams-small.png"/> <a href="https://yams.media">yams.media</a>
|
<img src="/pics/yams-small.png"/> <a href="https://yams.media">yams.media</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="zerostatic">
|
||||||
|
<img src="/pics/gitea-small.png"/> <a href="https://git.rogs.me/rogs/yams">git.rogs.me/rogs/yams</a>
|
||||||
|
</li>
|
||||||
<li class="zerostatic">
|
<li class="zerostatic">
|
||||||
<img src="/pics/gitlab-small.png"/> <a href="https://gitlab.com/rogs/yams">gitlab.com/rogs/yams</a>
|
<img src="/pics/gitlab-small.png"/> <a href="https://gitlab.com/rogs/yams">gitlab.com/rogs/yams</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="zerostatic">
|
||||||
|
<img src="/pics/github-small.png"/> <a href="https://github.com/rogsme/yams">github.com/rogsme/yams</a>
|
||||||
|
</li>
|
||||||
<li class="zerostatic">
|
<li class="zerostatic">
|
||||||
<img src="/pics/discord-small.png"/> <a href="https://discord.gg/Gwae3tNMST">Discord</a>
|
<img src="/pics/discord-small.png"/> <a href="https://discord.gg/Gwae3tNMST">Discord</a>
|
||||||
</li>
|
</li>
|
||||||
@ -22,7 +28,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<li class="zerostatic">
|
<li class="zerostatic">
|
||||||
<a href="https://www.buymeacoffee.com/rogs"><img src="https://img.buymeacoffee.com/button-api/?text=Support YAMS&emoji=\U0001f355&slug=rogs&button_colour=40DCA5&font_colour=ffffff&font_family=Lato&outline_colour=000000&coffee_colour=FFDD00" /></a>
|
<a href="https://www.buymeacoffee.com/rogs">🍕 Soutenez YAMS! 🤑</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
BIN
static/pics/gitea-small.png
Normal file
BIN
static/pics/gitea-small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 411 B |
BIN
static/pics/github-small.png
Normal file
BIN
static/pics/github-small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 351 B |
Loading…
x
Reference in New Issue
Block a user