-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.44 KB
/
Copy pathbuild-article-data.yml
File metadata and controls
49 lines (43 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build article data
on:
push:
branches:
- main
env:
GITHUB_NAME: The Buildbot
GITHUB_EMAIL: buildbot@angular2buch.de
CNAME: website-articles.angular-buch.com
BRANCH: gh-pages
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Build
env:
# standard.site publisher (see build/STANDARD-SITE.md).
# The step is a no-op unless BSKY_APP_PASSWORD is set.
BSKY_APP_PASSWORD: ${{ secrets.BSKY_APP_PASSWORD }}
BSKY_HANDLE: angular-buch.com
STANDARD_SITE_URL: https://angular-buch.com
STANDARD_SITE_NAME: Angular-Buch
STANDARD_SITE_DESCRIPTION: Der Blog zum Angular-Buch – das deutschsprachige Praxisbuch zu Angular.
STANDARD_SITE_EXPECTED_DID: did:plc:emeppmrqgb5rixbjcjihzd35
STANDARD_SITE_ICON: https://angular-buch.com/standard-site-icon.png
run: |
cd build
npm install
npm run build
- name: Deploy to branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install angular-cli-ghpages@2
npx angular-cli-ghpages --no-notfound --dir=dist --branch="$BRANCH" --cname="$CNAME" --name="$GITHUB_NAME" --email="$GITHUB_EMAIL"