forked from terraform-ibm-modules/landing-zone-config-tool
-
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.
- Loading branch information
1 parent
6ba4cab
commit ae27149
Showing
2 changed files
with
63 additions
and
1 deletion.
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,62 @@ | ||
name: Github Pages Release | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Cache dependencies | ||
id: cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
./node_modules | ||
./client/node_modules | ||
key: modules-${{ hashFiles('package-lock.json') }} | ||
- name: npm install | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
make clean-npm | ||
- name: npm test | ||
run: | | ||
npm test | ||
- name: npm build | ||
run: npm run build | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: './build/' | ||
Release: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
needs: Build | ||
|
||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
|
||
create-failure-notifications: | ||
needs: [ Release ] | ||
uses: ./.github/workflows/create-gh-issue-and-slack-message.yml | ||
if: ${{ failure() }} | ||
secrets: inherit |
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