mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2026-09-30 00:28:39 +00:00
fix: Improve if syntax
This commit is contained in:
@@ -81,19 +81,19 @@ jobs:
|
||||
run: npm run build
|
||||
|
||||
- name: Remove lint-staged husky
|
||||
if: github.ref == 'refs/heads/main'
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
run: |
|
||||
npm uninstall lint-staged husky
|
||||
git checkout package-lock.json package.json
|
||||
|
||||
- name: Setup mdBook
|
||||
if: github.ref == 'refs/heads/main'
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
uses: peaceiris/actions-mdbook@v1.1.14
|
||||
with:
|
||||
mdbook-version: '0.4.5'
|
||||
|
||||
- name: Build site
|
||||
if: github.ref == 'refs/heads/main'
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
working-directory: ./test_projects/mdbook
|
||||
run: mdbook build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user