Skip to content

Commit

Permalink
output path
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin committed Jun 5, 2024
1 parent 882f875 commit fd61284
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/integration-tests-v2.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build documenation
name: Integration tests FB 2.0

on:
workflow_dispatch:
Expand Down Expand Up @@ -40,21 +40,27 @@ jobs:
id: resolve_name_tag
shell: bash
run: |
if [[ -n "${{ github.event.inputs.custom-path }}" ]]; then
echo "::set-output name=path::${{ github.event.inputs.custom-path }}"
# 0.x releases deploy to 0.x path, all other releases deploy to latest path
elif [[ "${{ github.event_name }}" == "release" && "${{ github.event.release.tag_name }}" == 0.* ]]; then
echo "::set-output name=path::0.x"
# for manual builds deploy to the branch name path
elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "::set-output name=path::${{ github.ref_name }}"
else
echo "::set-output name=path::latest"
fi
if [[ -n "${{ github.event.inputs.custom-path }}" ]]; then
echo "path=${{ github.event.inputs.custom-path }}" >> $GITHUB_OUTPUT
# 0.x releases deploy to 0.x path, all other releases deploy to latest path
elif [[ "${{ github.event_name }}" == "release" && "${{ github.event.release.tag_name }}" == 0.* ]]; then
echo "path=0.x" >> $GITHUB_OUTPUT
# for manual builds deploy to the branch name path
elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "path=${{ github.ref_name }}" >> $GITHUB_OUTPUT
else
echo "path=latest" >> $GITHUB_OUTPUT
fi
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs_compiled
destination_dir: sdk_documenation/${{ steps.resolve_name_tag.outputs.path }}

- name: Add URL to the Job Summary
shell: bash
run: |
url="https://docs.firebolt.io/firebolt-python-sdk/sdk_documenation/${{ steps.resolve_name_tag.outputs.path }}"
echo "[Documentation]($url)" >> $GITHUB_STEP_SUMMARY

0 comments on commit fd61284

Please sign in to comment.