This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
54 additions
and
52 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 |
---|---|---|
|
@@ -119,8 +119,6 @@ jobs: | |
with: | ||
name: build | ||
path: build | ||
#- run: yarn --frozen-lockfile | ||
#- run: npx build-keycloak-theme --external-assets | ||
- run: npx -y -p keycloakify@$VER build-keycloak-theme --external-assets | ||
env: | ||
VER: ${{ needs.test.outputs.keycloakify_version }} | ||
|
@@ -130,6 +128,26 @@ jobs: | |
name: keycloak_theme | ||
path: build_keycloak/target/*keycloak-theme*.jar | ||
|
||
deploy_on_gh_pages: | ||
needs: | ||
- check_if_version_upgraded | ||
- test | ||
if: ${{ needs.check_if_version_upgraded.outputs.is_upgraded_version == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: build | ||
path: build | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '15' | ||
- 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 -d build -u "github-actions-bot <[email protected]>" | ||
|
||
update_changelog: | ||
name: Update CHANGELOG.md | ||
runs-on: ubuntu-latest | ||
|
@@ -183,53 +201,37 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
deploy_on_gh_pages: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: build | ||
path: build | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '15' | ||
- 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 -d build -u "github-actions-bot <[email protected]>" | ||
|
||
debug: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Show envs | ||
run: env | ||
- name: Dump GitHub context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJSON(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
- name: Dump job context | ||
env: | ||
JOB_CONTEXT: ${{ toJSON(job) }} | ||
run: echo "$JOB_CONTEXT" | ||
- name: Dump steps context | ||
env: | ||
STEPS_CONTEXT: ${{ toJSON(steps) }} | ||
run: echo "$STEPS_CONTEXT" | ||
- name: Dump runner context | ||
env: | ||
RUNNER_CONTEXT: ${{ toJSON(runner) }} | ||
run: echo "$RUNNER_CONTEXT" | ||
- name: Dump strategy context | ||
env: | ||
STRATEGY_CONTEXT: ${{ toJSON(strategy) }} | ||
run: echo "$STRATEGY_CONTEXT" | ||
- name: Dump matrix context | ||
env: | ||
MATRIX_CONTEXT: ${{ toJSON(matrix) }} | ||
run: echo "$MATRIX_CONTEXT" | ||
- name: Dump secret context | ||
env: | ||
SECRETS_CONTEXT: ${{ toJSON(secrets) }} | ||
run: echo "$SECRETS_CONTEXT" | ||
#debug: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Show envs | ||
# run: env | ||
# - name: Dump GitHub context | ||
# env: | ||
# GITHUB_CONTEXT: ${{ toJSON(github) }} | ||
# run: echo "$GITHUB_CONTEXT" | ||
# - name: Dump job context | ||
# env: | ||
# JOB_CONTEXT: ${{ toJSON(job) }} | ||
# run: echo "$JOB_CONTEXT" | ||
# - name: Dump steps context | ||
# env: | ||
# STEPS_CONTEXT: ${{ toJSON(steps) }} | ||
# run: echo "$STEPS_CONTEXT" | ||
# - name: Dump runner context | ||
# env: | ||
# RUNNER_CONTEXT: ${{ toJSON(runner) }} | ||
# run: echo "$RUNNER_CONTEXT" | ||
# - name: Dump strategy context | ||
# env: | ||
# STRATEGY_CONTEXT: ${{ toJSON(strategy) }} | ||
# run: echo "$STRATEGY_CONTEXT" | ||
# - name: Dump matrix context | ||
# env: | ||
# MATRIX_CONTEXT: ${{ toJSON(matrix) }} | ||
# run: echo "$MATRIX_CONTEXT" | ||
# - name: Dump secret context | ||
# env: | ||
# SECRETS_CONTEXT: ${{ toJSON(secrets) }} | ||
# run: echo "$SECRETS_CONTEXT" |
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