CI fix tentative #7
Some checks failed
Build and deploy all / build (push) Has been cancelled
Build and deploy all / deploy (push) Has been cancelled
Build and deploy all / notify (push) Has been cancelled

This commit is contained in:
Gu://em_ 2026-03-30 19:00:37 +02:00
parent 20bd58d440
commit ce880e4c3d

View file

@ -8,7 +8,7 @@ x-site-config: &site_matrix
include: include:
- site: "test" - site: "test"
dest: /var/www/crashtest dest: /var/www/crashtest
secret_key: "CONFIG_TEST" config_file: "test.json"
# - site: "harbor" # - site: "harbor"
# dest: /var/www/harbor # dest: /var/www/harbor
# secret_key: "CONFIG_HARBOR" # secret_key: "CONFIG_HARBOR"
@ -25,22 +25,18 @@ jobs:
strategy: strategy:
matrix: *site_matrix matrix: *site_matrix
defaults:
run:
working-directory: ./source
steps: steps:
- name: Checkout git repository - name: Checkout git repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
path: "source" path: "source"
- name: Inject configs - name: Retrieve configs
env: uses: actions/checkout@v4
CONF: ${{ secrets[matrix.secret_key] }} with:
run: | repository: ${{ secrets.CONFIG_REPO }}
echo "$CONF" > src/data/content.json ssh-key: ${{ secrets.CONFIG_REPO_SSH_KEY }}
echo "$CONF" path: "configs"
- name: Install pnpm - name: Install pnpm
uses: pnpm/action-setup@v4 uses: pnpm/action-setup@v4
@ -52,8 +48,11 @@ jobs:
with: with:
node-version: 22 node-version: 22
- name: Install dependencies - name: Install dependencies and config
run: pnpm install run: |
cp ./configs/${{ matrix.config_file }} ./source/src/data/content.json
cd ./source
pnpm install
- name: Build the project - name: Build the project
run: pnpm run build run: pnpm run build