mirror of
https://github.com/SantaSpeen/santaspeen.ru-blog.git
synced 2026-05-20 00:20:28 +00:00
fix workflow
This commit is contained in:
@@ -34,3 +34,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./build
|
publish_dir: ./build
|
||||||
|
|
||||||
|
algolia:
|
||||||
|
needs: deploy
|
||||||
|
name: Algolia update index for search
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }}
|
||||||
|
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Run Docker scraper
|
||||||
|
run: |
|
||||||
|
docker run -e APPLICATION_ID=$APPLICATION_ID -e API_KEY=$API_KEY -e "CONFIG=$(cat algolia_config.json | jq -r tostring)" algolia/docsearch-scraper
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
name: Algolia update index
|
name: Manual action for testing
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
job_algolia:
|
test_algolia:
|
||||||
name: Algolia updates
|
name: Algolia updates
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
Reference in New Issue
Block a user