Skip to content

Commit dd6af56

Browse files
Update README_environment_github_actions.md
FYI @olof-nord
1 parent 3338471 commit dd6af56

File tree

1 file changed

+29
-24
lines changed

1 file changed

+29
-24
lines changed

docs/README_environment_github_actions.md

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,36 +35,33 @@ More info can be found here:
3535
3. A New File editor will open, keep the file name (e.g. *main.yml*) as it is, simply replace all content to below:
3636

3737
```yml
38-
name: Node CI
39-
38+
name: Deploy to GitHub Pages via angular-cli-ghpages
39+
4040
on: [push]
41-
41+
4242
jobs:
43-
build:
43+
build-and-deploy:
4444
runs-on: ubuntu-latest
45-
45+
4646
steps:
47-
- uses: actions/checkout@v1
47+
- name: Checkout
48+
uses: actions/checkout@v2
49+
4850
- name: Use Node.js 10.x
49-
uses: actions/setup-node@v1
50-
with:
51+
uses: actions/setup-node@v1
52+
with:
5153
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: |
5459
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
6561
```
6662
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.
6865
5. You can also control when your workflows are triggered:
6966
- It can be helpful to not have your workflows run on every push to every branch in the repo.
7067
- 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:
9996
6. Commit and Push to add the workflow file.
10097
7. Done.
10198

102-
## Notes
99+
---
100+
101+
# Still questions?
102+
103+
Learn everything you need to know in the following extended article.
104+
105+
[![Banner](https://angular-schule.github.io/website-articles/blog/2020-01-everything-github/everything-github.png)](https://angular.schule/blog/2020-01-everything-github)
106+
107+
**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)
103110

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

Comments
 (0)