Skip to content

Commit d3f34b4

Browse files
authored
ci(release): fix docs pages
1 parent cb8a818 commit d3f34b4

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,27 +65,11 @@ jobs:
6565
GH_TOKEN: ${{ secrets.GH_TOKEN }}
6666
run: npm run release
6767

68-
docs:
69-
if: github.repository == 'kaciakmaciak/react-query-subscription' && github.ref == 'refs/heads/master'
70-
name: 'Publish Docs'
71-
runs-on: ubuntu-20.04
72-
73-
needs: [lint-test-build, release]
74-
75-
steps:
76-
- uses: actions/checkout@v2
77-
- uses: actions/setup-node@v2
78-
with:
79-
node-version: '14.17'
80-
81-
- name: Install dependencies
82-
uses: bahmutov/npm-install@v1
83-
with:
84-
install-command: npm ci --ignore-scripts
8568
- name: Build Docs 🔧
8669
run: npm run docs:pages
8770

8871
- name: Deploy Docs 🚀
72+
if: github.ref == 'refs/heads/master'
8973
uses: JamesIves/github-pages-deploy-action@4.1.4
9074
with:
9175
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)