Skip to content

Releases: angular-schule/angular-cli-ghpages

v1.0.0-rc.1

29 May 07:08
6e492b9
Compare
Choose a tag to compare
v1.0.0-rc.1 Pre-release
Pre-release

Angular 11 teaser

This release adds support for Angular v11. 🎉


⚠️ BREAKING CHANGE (v1)

Starting with version 1 the option --configuration was renamed to --build-target.

BEFORE (does not work):

ng deploy --configuration=test

NOW:

ng deploy --build-target=test

If you use the old syntax, you will probably receive the following error:

An unhandled exception occurred: Configuration 'test' is not set in the workspace.

Features

  • support for Angular 11, many thanks goes to @beeman 🐝, see PR #118 and PR #120, fixes #119

Fixes

v0.6.2

06 Jan 00:24
Compare
Choose a tag to compare

With this release, GitHub Actions becomes a first citizen alongside Travis CI and CircleCi.

Learn everything you need to know in the following article.

Banner

Everything GitHub: Continuous Integration, Deployment and Hosting for your Angular App

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...


tl;dr

The token GITHUB_TOKEN is now supported. When using any token (GH_TOKEN / PERSONAL_TOKEN / GITHUB_TOKEN), it is no longer necessary to specify the --repo parameter if the directory already has a remote repository. This is the case for GitHub actions. Please note that for GitHub actions git config user.name and git config user.email are not set. You still have to provide them.

ℹ️ Note

The GITHUB_TOKEN (installation access token) will only trigger a release of a new website if the action runs in a private repository. In a public repo, a commit is generated, but the site does not change. See this GitHub Community post for more info. If your repo is public, you must still use the GH_TOKEN (personal access token).

Special thanks goes out to @shhdharmen and @EdricChan03 who pushed this release forward! 👍

Example

A valid main.yml for GitHub Actions in a private repository could look like this:

name: Deploy to GitHub Pages via angular-cli-ghpages

on: [push]

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Use Node.js 10.x
      uses: actions/setup-node@v1
      with:
        node-version: 10.x

    - name: Prepare and deploy
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      run: |
        npm install
        npm run ng -- deploy --base-href=/the-repositoryname/ --name="Displayed Username" [email protected] --no-silent

A valid main.yml for GitHub Actions in a public repository could look like this:

name: Deploy to GitHub Pages via angular-cli-ghpages

on: [push]

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Use Node.js 10.x
      uses: actions/setup-node@v1
      with:
        node-version: 10.x

    - name: Prepare and deploy
      env:
        GH_TOKEN: ${{ secrets.GH_TOKEN }}
      run: |
        npm install
        npm run ng -- deploy --base-href=/the-repositoryname/ --name="Displayed Username" [email protected] --no-silent

Features

  • chore: extended commit message also for GitHub Actions (4925bc8, fixes #73)
  • chore: always discover remote URL (if not set) (c5f7b36, fixes #73, fixes #88)
  • chore: support for PERSONAL_TOKEN & GITHUB_TOKEN env vars (1066240, fixes #73, fixes #88)
  • chore: adds text: "Uploading via git, please wait" (f9bcf1c, fixes #78)

v0.6.1

21 Dec 21:33
Compare
Choose a tag to compare

angular-cli-ghpages-deploy2

This release has mainly improvements in error handling. It is now again possible to receive detailed logging messages using the --no-silent option. Furthermore, the deployment is aborted if the previous build fails (thanks to @masaxsuzu).

Fixes

  • fix: monkeypatch util.debuglog() for extended console logging (08d05c9)
  • fix: use callback to retrieve error message of gh-pages (6a8a3c2, fixes #74)
  • fix: throws an error if app building fails (e7f6a51, see PR #85 which fixes #74)

v0.6.0

27 Aug 11:17
Compare
Choose a tag to compare

angular-cli-ghpages-deploy

First stable release after v0.5.3. Please update.
This is a big rewrite that will allow invoking angular-cli-ghpages via ng deploy.

Example:

ng new your-angular-project --defaults
ng add angular-cli-ghpages
ng deploy --repo=https://github.com/angular-schule/angular-cli-ghpages-testdrive.git

Features

Furthermore I thank @SoAsEr, @TrevorKarjanis and @fmalcher for their help.

0.6.0-rc.2

06 Aug 22:42
Compare
Choose a tag to compare
0.6.0-rc.2 Pre-release
Pre-release

Docs fixed

  • the example --base-href for a non-custom domain should be terminated with a slash.
  • no code changes

fixes #62
Many thanks to @TrevorKarjanis.

0.6.0-rc.1

05 Aug 15:22
Compare
Choose a tag to compare
0.6.0-rc.1 Pre-release
Pre-release

Minor Bugfixes

  • bugfix: ng deploy path was broken for windows
  • bugfix: standalone mode was broken,

fixes #61
Many thanks to @SoAsEr.

0.6.0-rc.0

05 Aug 00:37
Compare
Choose a tag to compare
0.6.0-rc.0 Pre-release
Pre-release

This is a big rewrite that will allow invoking angular-cli-ghpages via ng deploy.
Deployments via Angular CLI will be available in @angular@next (v8.3.0-next.0 or greater)

Example:

ng new your-angular-project --defaults
ng add angular-cli-ghpages@next
ng deploy --repo=https://github.com/angular-schule/angular-cli-ghpages-testdrive.git

Please note: In the past this project was a standalone program (e.g npx angular-cli-ghpages). This is still possible! See the documentation at README_standalone.

See PR #60. This fixes #59
Many thanks to @mgechev.

Screen Shot 2019-08-05 at 02 38 36

0.5.3

05 Aug 14:47
Compare
Choose a tag to compare
  • adds the --cname parameter (PR #42 which fixes #7), many thanks to @bdavies
  • alters the commit message with extra info for CircleCI (similar to Travis CI)
  • better error output (uses console.dir)
  • various additions to the README (Angular CLI 6 needs the --dir parameter!)

0.5.2

26 Nov 14:48
Compare
Choose a tag to compare

New feature:

  • also adds the commit subject and body, when executed on Travis CI

v0.5.1

26 Nov 14:23
Compare
Choose a tag to compare

New Features:

  • copies index.html to 404.html by default (avoids 404 errors on github pages), fixes #10
  • new --dry-run option (gives detailed information about what would happen without doing anything)

Bugfix:

  • the script exited with a warning: Unhandled promise rejections are deprecated. -- exits now with code 1 instead, fixes #11