Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aurindam committed Sep 30, 2024
1 parent 44b52a7 commit 494535e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
id: identify-version
run: |
echo "version=$(sed -n '1p' ./releases/versions.txt)" >> "$GITHUB_OUTPUT"
- name: npm install
run: |
npm install
Expand Down Expand Up @@ -72,6 +73,11 @@ jobs:
--auth ${{ secrets.NETLIFY_API_TOKEN }} \
--prod
- name: Update website
uses: slint-ui/www/.github/actions/prod-deployment.yml
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

scrape-docs:
uses: ./.github/workflows/typesense-scrape.yml
needs: build-and-deploy
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/typesense-scrape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ jobs:
if: ${{ inputs.version == 'master' }}
with:
sparse-checkout: |
config
snapshots
snapshots/master/docs/slint
- name: Repository Checkout
uses: actions/checkout@v4
if: ${{ inputs.version != 'master' }}
with:
sparse-checkout: |
config
releases
releases/${{ inputs.version }}/docs/slint
- name: Run
uses: tj-actions/docker-run@v2
id: docker-run
Expand Down Expand Up @@ -60,7 +58,7 @@ jobs:
ref: master
path: slint
sparse-checkout: |
docs/search
docs/search/scraper-config.json
- name: Prepare config
run: |
sed -i "s/\$TYPESENSE_INDEX_NAME/${{ inputs.version }}/g" slint/docs/search/scraper-config.json
Expand Down

0 comments on commit 494535e

Please sign in to comment.