CI fix tentative #7
This commit is contained in:
parent
20bd58d440
commit
ce880e4c3d
1 changed files with 12 additions and 13 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue