-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (53 loc) · 2.1 KB
/
angular.yml
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
50
51
52
53
54
55
56
57
name: Angular CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.0
# with:
# token: ${{ secrets.PAGES_PAT }}
- name: Cache node modules
uses: actions/cache@v3.3.1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Node ${{ matrix.node-version }}
uses: actions/setup-node@v3.6.0
with:
node-version: '18.x'
- name: npm install (from package.lock.json)
run: npm ci
- name: npm build prod
run: npm run 'build prod'
- name: Copy file
uses: canastro/copy-action@0.0.2
with:
source: dist/HtmlDdrPlayer/index.html
target: dist/HtmlDdrPlayer/404.html
- name: GitHub Pages
uses: crazy-max/ghaction-github-pages@v3.1.0
with:
repo: Guzmazow/Guzmazow.github.io
target_branch: master
allow_empty_commit: false
build_dir: dist/HtmlDdrPlayer
env:
GITHUB_TOKEN: ${{ secrets.PAGES_PAT }}
#- name: All things angular
# uses: Guzmazow/angular-deploy-gh-pages-actions@v1.3.5 ## replace by latest version without it you will see Expected format {org}/{repo}[/path]@ref. Actual 'AhsanAyaz/angular-deploy-gh-pages-actions',Input string was not in a correct format.
# env:
# ACTIONS_ALLOW_UNSECURE_COMMANDS: true
# with:
# github_access_token: ${{ secrets.PAGES_PAT }} # see the Configuration section for how you can create secrets
# build_configuration: production # The build environment for the app. please look configurations in your angular.json
# base_href: / # make sure this corresponds to https://<your_username>.github.io/<base_href>/
# deploy_repository: Guzmazow/Guzmazow.github.io
# deploy_branch: master # The branch the action should deploy to.
# angular_dist_build_folder: dist/HtmlDdrPlayer # The folder where your project is supposed to be after running ng build by the action.