Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix potential github action smells #3826

Merged
merged 1 commit into from
May 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
# Runs on pushes targeting the main branch
push:
branches: [main]
paths:
- webiste/**

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -45,14 +47,17 @@ jobs:
- name: Build
run: npm run build
- name: Install website dependencies
run: cd website && npm ci
working-directory: website
run: npm ci
- name: Sync Crowdin
run: cd website && npm run crowdin:sync
working-directory: website
run: npm run crowdin:sync
continue-on-error: true
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Build docs
run: cd website && npm run build
working-directory: website
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand All @@ -65,6 +70,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: ${{github.repository == 'cheeriojs/cheerio'}}
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down