Skip to content

Commit

Permalink
Do not create or publish docs if this is a
Browse files Browse the repository at this point in the history
pre-release.

Tested on a sample project, but this is still
quite brittle, and likely to have issues.
  • Loading branch information
hildjj committed Oct 3, 2024
1 parent 9853fa0 commit 908b292
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ jobs:
cache: pnpm
- run: pnpm i -r
- run: npm run build
- run: npm run docs
- name: Get version of the project
id: vvver
uses: 'euberdeveloper/ga-project-version@main'
- run: npm pkg delete devDependencies scripts pnpm browserslist packageManager
- name: Create Docs
if: contains(steps.vvver.outputs.version, 'pre') == false
run: npm run docs
- name: Deploy Docs
if: contains(steps.vvver.outputs.version, 'pre') == false
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 908b292

Please sign in to comment.