-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.12 KB
/
sync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Sync
on:
schedule:
- cron: '* * * * *'
repository_dispatch:
types: [sync]
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
- run: corepack install
- name: Run pnpm install
run: pnpm install --frozen-lockfile --recursive
- run: pnpm build
- run: pnpm action sync
env:
HOSTNAME: ${{ vars.HOSTNAME }}
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
ALGOLIA_PRIVATE_KEY: ${{ secrets.ALGOLIA_PRIVATE_KEY }}
ALGOLIA_INDEX_CATEGORIES: ${{ vars.ALGOLIA_INDEX_CATEGORIES }}
ALGOLIA_INDEX_MENU_ITEMS: ${{ vars.ALGOLIA_INDEX_MENU_ITEMS }}
ALGOLIA_INDEX_PRODUCTS: ${{ vars.ALGOLIA_INDEX_PRODUCTS }}
WOOCOMMERCE_KEY: ${{ secrets.WOOCOMMERCE_KEY }}
WOOCOMMERCE_SECRET: ${{ secrets.WOOCOMMERCE_SECRET }}
WORDPRESS_USERNAME: ${{ secrets.WORDPRESS_USERNAME }}
WORDPRESS_PASSWORD: ${{ secrets.WORDPRESS_PASSWORD }}