Skip to content

Commit 358076b

Browse files
committed
Updated github action
1 parent 4a6783a commit 358076b

File tree

5 files changed

+25
-20
lines changed

5 files changed

+25
-20
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
},
55
"runArgs": ["--env-file", "${localWorkspaceFolder}/.devcontainer/.env"],
66
"build": {
7-
"dockerfile": "./docker/Dockerfile"
7+
"dockerfile": "./docker/Dockerfile.develop"
88
},
99
"containerEnv": {
1010
"BUILD_CONFIGURATION": "DEVELOPMENT"

.github/workflows/github-pages-angular-deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
build-and-deploy-to-github-pages:
2020
runs-on: ubuntu-latest
2121
steps:
22+
- name: Android repo init and sync
23+
uses: Xerner/github-actions-android-repo-init-and-sync@0.0.3
24+
with:
25+
manifest_filename: xerner.github.io.default.xml
2226
- name: Deploy Angular to GitHub Pages
2327
uses: bitovi/github-actions-angular-to-github-pages@v1.0.0
2428
with:

README.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
# Portfolio
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.2.0.
3+
This repo relies on
4+
- [androids repo tool for pulling in external code dependencies through Git](https://source.android.com/docs/setup/reference/repo#init)
5+
- Docker for running the [Dockerfile](./.devcontainer/docker/Dockerfile) and the [dev container](./.devcontainer/devcontainer.json)
6+
- VS Code for running docker through the [dev container](./.devcontainer/devcontainer.json). The [dev container](./.devcontainer/devcontainer.json) is responsible for setting up a `.env` file that contains environment variables that provides the following to the container
7+
- Git user info
8+
- Git SSH public and private keys
49

5-
## Development server
10+
## Prerequisites
611

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
12+
1. Open the project in the docker container through VS Code or dockers CLI.
13+
> Note: If running the container purely through docker, Git credentials may have to be setup manually
14+
2. First time setup of the `repo` tool and dependent repositories
815

9-
## Code scaffolding
16+
```bash
17+
repo init -u "https://github.com/Xerner/manifests" -b "development" -m "xerner.github.io.default.xml"
18+
repo sync
19+
```
1020

11-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
21+
## Building The App
1222

13-
## Build
23+
1. Follow the [prerequisite steps](#prerequisites)
24+
2. Build the app with `ng build`
1425

15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
26+
## Serving The App
1627

17-
## Running unit tests
18-
19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20-
21-
## Running end-to-end tests
22-
23-
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
24-
25-
## Further help
26-
27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
28+
1. Follow the [prerequisite steps](#prerequisites)
29+
2. Serve the app with `ng serve --configuration development`

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"start": "ng serve --configuration production",
77
"start-dev": "ng serve --configuration development",
88
"build": "ng build",
9-
"watch": "ng build --watch --configuration development",
109
"storybook": "ng run xerner.github.io:storybook",
1110
"build-storybook": "ng run xerner.github.io:build-storybook",
1211
"test-storybook": "test-storybook"

0 commit comments

Comments
 (0)