ci: base URL fix
All checks were successful
Deploy workflow / deploy (push) Successful in 38s

This commit is contained in:
Matthieu Bessat 2024-03-18 20:56:51 +01:00
parent 797a468ac9
commit c41b378fdc

View file

@ -19,18 +19,21 @@ jobs:
shell: /bin/bash shell: /bin/bash
run: | run: |
if [[ "${{ env.github_ref_name }}" == "master" ]]; then if [[ "${{ env.github_ref_name }}" == "master" ]]; then
echo "Using master config"
echo -n "https://etoiledebethleem.fr" > /base_url.txt echo -n "https://etoiledebethleem.fr" > /base_url.txt
fi fi
if [[ "${{ env.github_ref_name }}" == "develop" ]]; then if [[ "${{ env.github_ref_name }}" == "develop" ]]; then
echo "Using develop config"
echo -n "https://preview.etoiledebethleem.fr" > /base_url.txt echo -n "https://preview.etoiledebethleem.fr" > /base_url.txt
fi fi
ls /
cat /base_url.txt
- name: Install rsync - name: Install rsync
run: apt update && apt install -y rsync run: apt update && apt install -y rsync
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
- run: ls -la
- name: Setup Hugo - name: Setup Hugo
env: env:
HUGO_RELEASE_TYPE: extended HUGO_RELEASE_TYPE: extended