-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OK-496: Refaktoroitu CI-putkea ja lisätty storybookin julkaisulle oma…
… workflow - Lisätty myös storybookin ajamiselle ja testaamiselle skriptit
- Loading branch information
Showing
6 changed files
with
53 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Build storybook | ||
description: Install dependencies and build Storybook | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
- name: Install dependencies | ||
shell: bash | ||
run: npm ci --no-audit --prefer-offline --ignore-scripts | ||
- name: Build storybook | ||
shell: bash | ||
run: npm run build-storybook -- --quiet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Deploy storybook | ||
description: Deploy prebuilt storybook | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Deploy storybook | ||
shell: bash | ||
run: | | ||
git clone https://github.com/Opetushallitus/ci-tools.git | ||
source ci-tools/common/setup-tools.sh | ||
sh scripts/deploy-storybook.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Publish storybook | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/build-storybook | ||
- uses: ./.github/actions/deploy-storybook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters