Skip to content

Commit

Permalink
Fix CI Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
haimlevy2006 committed Jul 4, 2024
1 parent 68aa471 commit dc3f402
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 133 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/automated-publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- v*.*
paths-ignore:
- 'github/**'

jobs:
env:
Expand Down Expand Up @@ -38,7 +40,7 @@ jobs:
fi
install-dependencies-and-deploy:
name: install dependencies
name: Install Dependencies and Deploy
needs: [env]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -91,7 +93,7 @@ jobs:
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
SLACK_TITLE: "Airgapped package for ${{ inputs.env }} environment ${{ contains(needs.*.result, 'failure') && 'failed' || 'finished successfully' }}"
SLACK_TITLE: "RunAI-Docs: Version ${{ needs.env.outputs.CURRENT_BRANCH }} Deployment ${{ contains(needs.*.result, 'failure') && 'failed' || 'completed successfully' }}"
SLACK_MESSAGE_ON_SUCCESS: "Docs were updated successfully for version ${{ needs.env.outputs.TITLE }}"
SLACK_MESSAGE_ON_FAILURE: "Docs update FAILED for version ${{ needs.env.outputs.TITLE }}"
MSG_MINIMAL: true
Expand Down
64 changes: 0 additions & 64 deletions .github/workflows/delete-deployments.yaml

This file was deleted.

134 changes: 67 additions & 67 deletions .github/workflows/mike-delete-all.yaml
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
name: delete all published docs CI
# name: delete all published docs CI

on:
workflow_dispatch:
inputs:
version:
required: false
description: 'Version number from branch to delete'
# default: "main"
type: string
alias:
required: false
description: 'Version or alias. Use a branch version for all docs use the alias to hide docs.'
# default: "latest"
type: string
# title:
# required: false
# description: 'Doc site dropdown menu title (version +/- latest)'
# default: "latest"
# type: string
# on:
# workflow_dispatch:
# inputs:
# version:
# required: false
# description: 'Version number from branch to delete'
# # default: "main"
# type: string
# alias:
# required: false
# description: 'Version or alias. Use a branch version for all docs use the alias to hide docs.'
# # default: "latest"
# type: string
# # title:
# # required: false
# # description: 'Doc site dropdown menu title (version +/- latest)'
# # default: "latest"
# # type: string

# pull_request:
# branches:
# - "master"
# # pull_request:
# # branches:
# # - "master"

jobs:
install_dependencies_and_deploy:
name: install dependencies and deploy latest changes to prod
runs-on: ubuntu-latest
steps:
- name: checkout latest
uses: actions/checkout@v3
with:
ref: ${{ inputs.version }}
fetch-depth: 0
# jobs:
# install_dependencies_and_deploy:
# name: install dependencies and deploy latest changes to prod
# runs-on: ubuntu-latest
# steps:
# - name: checkout latest
# uses: actions/checkout@v3
# with:
# ref: ${{ inputs.version }}
# fetch-depth: 0

- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
# - name: setup python
# uses: actions/setup-python@v4
# with:
# python-version: '3.9'
# cache: 'pip' # caching pip dependencies

- name: install dependencies
run: |
pip3 install -r requirements.txt
- name: Configure Git User
run: |
git config user.name "jasonnovichrunai"
git config user.email "[email protected]"
# git fetch origin gh-pages --depth=0
# - name: install dependencies
# run: |
# pip3 install -r requirements.txt

# - name: deploy mkdocs latest
# # run: mkdocs gh-deploy --force
# # echo "deploy new version with mike..."
# if: ${{ inputs.version == 'master'}}
# run: |
# mike deploy --push ${{ inputs.version }} ${{ inputs.alias }} --title=${{ inputs.title }}-latest
# mike set-default ${{ inputs.alias }} --ignore
# - name: deploy mkdocs version
# if: ${{ inputs.version != 'master' }}
# - name: Configure Git User
# run: |
# mike deploy --push ${{ inputs.version }} ${{ inputs.alias }} --title=${{ inputs.title }}-latest
# mike set-default ${{ inputs.alias }} --ignore
# if [[ "${{ inputs.delete_latest }}" == 'true' ]]; then
# mike delete --push latest
# fi
# --title=${{ inputs.alias }}${latest}
# run: mike delete --push 2.9a
# git config user.name "jasonnovichrunai"
# git config user.email "[email protected]"
# # git fetch origin gh-pages --depth=0

# # - name: deploy mkdocs latest
# # # run: mkdocs gh-deploy --force
# # # echo "deploy new version with mike..."
# # if: ${{ inputs.version == 'master'}}
# # run: |
# # mike deploy --push ${{ inputs.version }} ${{ inputs.alias }} --title=${{ inputs.title }}-latest
# # mike set-default ${{ inputs.alias }} --ignore
# # - name: deploy mkdocs version
# # if: ${{ inputs.version != 'master' }}
# # run: |
# # mike deploy --push ${{ inputs.version }} ${{ inputs.alias }} --title=${{ inputs.title }}-latest
# # mike set-default ${{ inputs.alias }} --ignore
# # if [[ "${{ inputs.delete_latest }}" == 'true' ]]; then
# # mike delete --push latest
# # fi
# # --title=${{ inputs.alias }}${latest}
# # run: mike delete --push 2.9a

# mike delete --push ${{ inputs.version }}
# # mike delete --push ${{ inputs.version }}

- name: deploy mkdocs
run: |
mike delete --push --all
mike list
# - name: deploy mkdocs
# run: |
# mike delete --push --all
# mike list

0 comments on commit dc3f402

Please sign in to comment.