Skip to content

Commit

Permalink
ci(root): update deployment workflow to incorporate v3 branch
Browse files Browse the repository at this point in the history
Update deployment workflow to incorporate v3 branch, where v3 work is hosted separately to other
branch work
  • Loading branch information
GCHQ-Developer-530 committed Jul 10, 2024
1 parent 0438590 commit 4e45029
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ic-design-system-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- "develop"
- "v3.0.0/develop"
pull_request:
types: [opened, reopened, edited, synchronize]

Expand Down Expand Up @@ -64,8 +65,18 @@ jobs:
- name: Deploy
uses: JamesIves/github-pages-deploy-action@65b5dfd4f5bcd3a7403bbc2959c144256167464e #v4
if: ${{ steps.extract_branch.outputs.branch != 'v3.0.0/main' }}
with:
repository-name: mi6/ic-design-system-githubpages
folder: ./public
target-folder: ./branches/${{ steps.extract_branch.outputs.branch }}
token: ${{ secrets.IC_DESIGN_SYSTEM_QA }}

- name: Deploy v3
uses: JamesIves/github-pages-deploy-action@65b5dfd4f5bcd3a7403bbc2959c144256167464e #v4
if: ${{ steps.extract_branch.outputs.branch == 'v3.0.0/main' }}
with:
repository-name: mi6/ic-design-system-githubpages
folder: ./public
target-folder: ./v3
token: ${{ secrets.IC_DESIGN_SYSTEM_QA }}

0 comments on commit 4e45029

Please sign in to comment.