Skip to content

Commit

Permalink
fix: flip mike order
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Sep 1, 2021
1 parent 5172852 commit e2b5fcb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 43 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/cd-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,16 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get current branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Set up git author
run: |
remote_repo="https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git remote rm origin
git remote add origin "${remote_repo}"
git checkout --orphan gh-pages
git pull origin gh-pages
git checkout ${{ steps.extract_branch.outputs.branch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Upload
run: |
VERSION=$(echo $GITHUB_REF | cut -d / -f 3 | sed 's/v//')
echo $VERSION
#We only published tagged version for main
if [[ $VERSION != *"develop"* ]]; then
pip3 install poetry
poetry install
poetry run mike deploy --rebase -p -u $VERSION latest
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pip3 install poetry
poetry install
poetry run mike deploy --rebase -p -u $VERSION latest
helm:
runs-on: ubuntu-latest
needs: mike
Expand Down
37 changes: 18 additions & 19 deletions .github/workflows/ci-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,31 @@ jobs:
--sc4s_host=sc4s \
--junitxml=test-results/test.xml \
-n 14
mike:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Upload
run: |
BRANCH=$(echo $GITHUB_REF | cut -d / -f 3)
echo $BRANCH
pip3 install poetry
poetry install
poetry run mike deploy -p $BRANCH
release:
name: Release
runs-on: ubuntu-latest
needs:
- meta
- build_action
- test-container
- mike
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -228,21 +245,3 @@ jobs:
@google/semantic-release-replace-plugin
env:
GITHUB_TOKEN: ${{ secrets.GHCR_PAT }}
mike:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Upload
run: |
BRANCH=$(echo $GITHUB_REF | cut -d / -f 3)
echo $BRANCH
pip3 install poetry
poetry install
poetry run mike deploy -p $BRANCH

0 comments on commit e2b5fcb

Please sign in to comment.