Skip to content

Commit

Permalink
Merge pull request #128 from vintasoftware/fix/docs-update
Browse files Browse the repository at this point in the history
Fix docs-update action
  • Loading branch information
pamella authored Jun 26, 2024
2 parents 0b30055 + 23304e1 commit c55fdc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/docs-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,12 @@ jobs:
run: |
poetry run mike deploy -b gh-pages dev --push
- name: Check version
- name: Extract package version
if: ${{ github.ref == 'refs/heads/docs-update' || startsWith(github.ref, 'refs/tags/') }}
id: check-version
uses: samuelcolvin/[email protected]
with:
version_file_path: "django_ai_assistant/__init__.py"
skip_env_check: true
run: |
echo "VERSION=$(poetry version -s)" >> $GITHUB_ENV
- name: Deploy on push to docs-update branch or tag push
if: ${{ (github.ref == 'refs/heads/docs-update' || startsWith(github.ref, 'refs/tags/')) && !fromJSON(steps.check-version.outputs.IS_PRERELEASE) }}
run: |
poetry run mike deploy -b gh-pages ${{ steps.check-version.outputs.VERSION_MAJOR_MINOR }} latest --update-aliases --push
poetry run mike deploy -b gh-pages ${{ env.VERSION }} latest --update-aliases --push
5 changes: 0 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
uses: actions/checkout@v4

- name: Extract changelog for version
id: changelog
run: |
VERSION=${{ github.event.inputs.version }}
Expand All @@ -43,10 +42,6 @@ jobs:
echo "$CHANGELOG" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Print changelog
run: |
echo "Output is ${{ env.CHANGELOG }}"
- name: Create GitHub Release Draft
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit c55fdc4

Please sign in to comment.