aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yaml58
1 files changed, 30 insertions, 28 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 0e8a0de..ba804c4 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -19,6 +19,7 @@ jobs:
node-version: '16'
- uses: bahmutov/npm-install@v1
- run: yarn build
+ - run: echo $(node -e 'console.log(require("url").parse(require("./package.json").homepage).host)') > build/CNAME
- run: npx keycloakify
- uses: actions/upload-artifact@v2
with:
@@ -48,34 +49,6 @@ jobs:
with:
action_name: is_package_json_version_upgraded
- github_pages:
- runs-on: ubuntu-latest
- needs:
- - check_if_version_upgraded
- - build
- # We publish the docker image only if it's a push on the default branch or if it's a PR from a
- # branch (meaning not a PR from a fork). It would be more straightforward to test if secrets.DOCKERHUB_TOKEN is
- # defined but GitHub Action don't allow it.
- if: |
- needs.check_if_version_upgraded.outputs.is_upgraded_version == 'true' &&
- github.event_name == 'push' ||
- github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
- steps:
- - uses: actions/checkout@v2
- - uses: actions/download-artifact@v2
- with:
- name: build
- path: build
- - uses: actions/[email protected]
- with:
- node-version: '16'
- - run: echo $(node -e 'console.log(require("url").parse(require("./package.json").homepage).host)') > build/CNAME
- - run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- - run: npx -y -p [email protected] gh-pages -u "github-actions-bot <[email protected]>" -d build
- - run: npx -y -p [email protected] gh-pages -u "github-actions-bot <[email protected]>" -d build_storybook --dest storybook --add
-
docker:
needs:
- check_if_version_upgraded
@@ -158,4 +131,33 @@ jobs:
prerelease: ${{ needs.check_if_version_upgraded.outputs.is_release_beta == 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ github_pages_app:
+ runs-on: ubuntu-latest
+ needs:
+ - create_github_release
+ steps:
+ - uses: actions/download-artifact@v2
+ with:
+ name: build
+ path: build
+ - run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - uses: actions/[email protected]
+ - run: npx -y -p [email protected] gh-pages -u "github-actions-bot <[email protected]>" -d build
+
+ github_pages_storybook:
+ runs-on: ubuntu-latest
+ needs:
+ - create_github_release
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/[email protected]
+ - uses: bahmutov/npm-install@v1
+ - run: yarn build-storybook
+ - run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - run: npx -y -p [email protected] gh-pages -u "github-actions-bot <[email protected]>" -d build_storybook --dest storybook --add