Skip to content

Commit 987eb44

Browse files
committed
fix(no-ref): workflow
1 parent b8c5565 commit 987eb44

File tree

2 files changed

+92
-91
lines changed

2 files changed

+92
-91
lines changed

.github/workflows/gh-pages.yml

Lines changed: 91 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,103 @@
11
name: GitHub pages
22

33
on:
4-
push:
5-
branches:
6-
- develop
4+
push:
5+
branches:
6+
- develop
77

88
jobs:
9-
build:
10-
runs-on: ubuntu-latest
11-
permissions:
12-
contents: write
13-
steps:
14-
- uses: actions/checkout@v4
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v4
1515

16-
- uses: actions/setup-node@v4
17-
with:
18-
node-version: 20
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
1919

20-
- name: Install deps
21-
run: |
22-
npm ci --force
23-
git submodule update --init --recursive --remote
20+
- name: Install deps
21+
run: |
22+
npm ci --force
23+
git submodule update --init --recursive --remote
2424
25-
- name: Semantic Release
26-
id: semantic-release
27-
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
run: |
30-
npx semantic-release
25+
- name: Semantic Release
26+
id: semantic-release
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
run: |
30+
npx semantic-release
3131
32-
- name: Build demo app
33-
env:
34-
RELEASE_VERSION: ${{ steps.semantic-release.outputs.new-release-version }}
35-
run: |
36-
echo '********'
37-
echo "RELEASE_VERSION: $RELEASE_VERSION"
38-
echo '********'
39-
bash .github/workflows/scripts/replace_template.sh $RELEASE_VERSION
40-
npm run build
32+
- name: Build demo app
33+
env:
34+
RELEASE_VERSION: ${{ steps.semantic-release.outputs.new-release-version }}
35+
run: |
36+
echo '********'
37+
echo "RELEASE_VERSION: $RELEASE_VERSION"
38+
echo '********'
39+
bash .github/workflows/scripts/replace_template.sh $RELEASE_VERSION
40+
npm run build
4141
42-
- name: Deploy demo
43-
uses: peaceiris/actions-gh-pages@v3
44-
with:
45-
github_token: ${{ secrets.GITHUB_TOKEN }}
46-
publish_dir: ./dist/angular-loader/browser
42+
- name: Deploy demo
43+
uses: peaceiris/actions-gh-pages@v3
44+
with:
45+
github_token: ${{ secrets.GITHUB_TOKEN }}
46+
publish_dir: ./dist/angular-loader/browser
4747

48-
outputs:
49-
version: ${{ steps.semantic-release.outputs.new-release-version }}
48+
outputs:
49+
version: ${{ steps.semantic-release.outputs.new-release-version }}
5050

51-
slack_notification:
52-
needs:
53-
- build
54-
runs-on: ubuntu-latest
55-
steps:
56-
- name: Post to a Slack channel
57-
id: slack
58-
uses: slackapi/[email protected]
59-
with:
60-
channel-id: 'deployments'
61-
payload: |
62-
{
63-
"text": "GitHub Action build result: ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}",
64-
"blocks": [
65-
{
66-
"type": "section",
67-
"text": {
68-
"type": "mrkdwn",
69-
"text": "GitHub Action build result: ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}"
70-
}
71-
},
72-
{
73-
"type": "section"
74-
"text": {
75-
"type": "mrkdwn",
76-
"text": "Project: `${{ github.event.repository.name }}`"
77-
}
78-
},
79-
{
80-
"type": "section",
81-
"text": {
82-
"type": "mrkdwn",
83-
"text": "Version: `${{ needs.build.outputs.version || 'TBA' }}`"
84-
}
85-
},
86-
{
87-
"type": "section",
88-
"text": {
89-
"type": "mrkdwn",
90-
"text": "Commit/PR URL: ${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
91-
}
92-
},
93-
{
94-
"type": "section",
95-
"text": {
96-
"type": "mrkdwn",
97-
"text": "Website URL: ${{ secrets.WEBSITE_URL || 'TBA' }}"
98-
}
99-
}
100-
]
101-
}
102-
env:
103-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
51+
slack_notification:
52+
needs:
53+
- build
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Post to a Slack channel
57+
id: slack
58+
uses: slackapi/[email protected]
59+
with:
60+
channel-id: 'deployments'
61+
payload: |
62+
{
63+
"text": "GitHub Action build result: ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}",
64+
"blocks": [
65+
{
66+
"type": "section",
67+
"text": {
68+
"type": "mrkdwn",
69+
"text": "GitHub Action build result: ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}"
70+
}
71+
},
72+
{
73+
"type": "section",
74+
"text": {
75+
"type": "mrkdwn",
76+
"text": "Project: `${{ github.event.repository.name }}`"
77+
}
78+
},
79+
{
80+
"type": "section",
81+
"text": {
82+
"type": "mrkdwn",
83+
"text": "Version: `${{ needs.build.outputs.version || 'TBA' }}`"
84+
}
85+
},
86+
{
87+
"type": "section",
88+
"text": {
89+
"type": "mrkdwn",
90+
"text": "Commit/PR URL: ${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
91+
}
92+
},
93+
{
94+
"type": "section",
95+
"text": {
96+
"type": "mrkdwn",
97+
"text": "Website URL: ${{ secrets.WEBSITE_URL || 'TBA' }}"
98+
}
99+
}
100+
]
101+
}
102+
env:
103+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ testem.log
4242
Thumbs.db
4343

4444
.angular
45+
.nx
4546

4647
# Snyk
4748
.dccache

0 commit comments

Comments
 (0)