Skip to content

Commit

Permalink
enable publish only for master
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam committed Nov 20, 2024
1 parent ae36364 commit 9cd826c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,21 @@ jobs:
run: yarn build:docs

- name: Create artifacts
if: github.ref == 'refs/heads/master'
run: |
mkdir -p artifacts
mv docs/dist artifacts/
ls -la artifacts
- name: Upload docs
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v4
with:
name: doc-${{ github.sha }}
path: ./artifacts/

publish-docs:
# if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v*'
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
environment: master_n_tags
needs: [build-docs]
Expand Down

0 comments on commit 9cd826c

Please sign in to comment.