mirror of
https://github.com/SantaSpeen/santaspeen.ru-blog.git
synced 2026-02-16 02:30:58 +00:00
fix workflow
This commit is contained in:
15
.github/workflows/deploy.yml
vendored
15
.github/workflows/deploy.yml
vendored
@@ -34,3 +34,18 @@ jobs:
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
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:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
job_algolia:
|
||||
test_algolia:
|
||||
name: Algolia updates
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
Reference in New Issue
Block a user