You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README_environment_github_actions.md
+29-24Lines changed: 29 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,36 +35,33 @@ More info can be found here:
35
35
3. A New File editor will open, keep the file name (e.g. *main.yml*) as it is, simply replace all content to below:
36
36
37
37
```yml
38
-
name: Node CI
39
-
38
+
name: Deploy to GitHub Pages via angular-cli-ghpages
39
+
40
40
on: [push]
41
-
41
+
42
42
jobs:
43
-
build:
43
+
build-and-deploy:
44
44
runs-on: ubuntu-latest
45
-
45
+
46
46
steps:
47
-
- uses: actions/checkout@v1
47
+
- name: Checkout
48
+
uses: actions/checkout@v2
49
+
48
50
- name: Use Node.js 10.x
49
-
uses: actions/setup-node@v1
50
-
with:
51
+
uses: actions/setup-node@v1
52
+
with:
51
53
node-version: 10.x
52
-
- name: npm install, lint, test, build and deploy
53
-
run: |
54
+
55
+
- name: Prepare and deploy
56
+
env:
57
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58
+
run: |
54
59
npm install
55
-
npm run lint
56
-
###
57
-
# You can comment below 2 test scripts, if you haven't [configured CLI for CI testing in Chrome](https://angular.io/guide/testing#configure-cli-for-ci-testing-in-chrome)
58
-
###
59
-
npm test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
60
-
npm run e2e -- --protractor-config=e2e/protractor-ci.conf.js
61
-
npm run deploy -- --name="<YOUR_GITHUB_USERNAME>" --email=<YOUR_GITHUB_USER_EMAIL_ADDRESS>
62
-
env:
63
-
CI: true
64
-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60
+
npm run ng -- deploy --base-href=/the-repositoryname/ --name="Displayed Username" --email="[email protected]" --no-silent
65
61
```
66
62
67
-
4. Make sure to replace **<YOUR_GITHUB_USERNAME>** and **<YOUR_GITHUB_USER_EMAIL_ADDRESS>** with correct values in above snippet.
63
+
64
+
4. Make sure to replace **`/the-repositoryname/`**, **`Displayed Username`** and **`[email protected]`** with correct values in above snippet.
68
65
5. You can also control when your workflows are triggered:
69
66
- It can be helpful to not have your workflows run on every push to every branch in the repo.
70
67
- For example, you can have your workflow run on push events to master and release branches:
@@ -99,7 +96,15 @@ More info can be found here:
99
96
6. Commit and Push to add the workflow file.
100
97
7. Done.
101
98
102
-
## Notes
99
+
---
100
+
101
+
# Still questions?
102
+
103
+
Learn everything you need to know in the following extended article.
**Everything GitHub: Continuous Integration, Deployment and Hosting for your Angular App**
108
+
109
+
In this article we show several tools from the GitHub universe to launch a website with Angular. We will establish a professional pipeline, including version management, continuous deployment and web hosting. Best of all, for public repositories, this will not cost you a single cent! [Read more...](https://angular.schule/blog/2020-01-everything-github)
103
110
104
-
Please note that GitHub Actions is currently in beta and is not currently suited/intended to be for use in production.
105
-
Please note that the steps above may be modified at any time for reasons including the discovering of new ways to simplify the steps/process of deployment or for other reasons not explicitly mentioned.
0 commit comments