-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub Actions support #73
Comments
Hi, let's try to figure this out together. I wanted to make a how-to-guide for all the CI/CD platforms. We should start with GitHub Actions! 😉 I applied the org for the beta and now I'm waiting for that mail. I can't do anything more at the moment. Meanwhile you could:
... I'm just guessing, but I bet there is no remote configured. Cheers, Johannes (typed on my mobile phone) |
Thanks for responding quickly to my issue! Anyways, here are my responses to the individual questions:
P.S. Could this be due to the EDIT: The problem could've been caused by the default options I have passed to the deploy builder. I've just pushed a commit that removes the default EDIT 2: The commit I've pushed did not help at all. I'll try to add the EDIT 3: Adding the |
I'm currently attempting to use the |
Specifying the username and email has fixed the pushing to the |
Looks like it's caused by the issue of using the default GitHub token instead of a personal access token (P.S. I contacted the GitHub staff a while back regarding this same issue when deploying to my personal website and the email reply can be seen below:) Text version
|
Using a personal access token with the If you want my process to be documented, feel free to reply to my comment. |
Wow, thanks for figuring this out! Could you do the community a big favour by writing everything down on in a new README.md and send a PR? It would be super helpful for everybody else if this environment is well-documented. The folders |
I'm more than welcome to document this down if I have sufficient time to do so, which I don't have right now. Anyways, what should I name this README file that I would create? And here's a possible draft for the README (based on the other docs already available): angular-cli-ghpages: README for setting up deployment with GitHub ActionsFirst para goes here Prerequisites
Getting startedPlease ensure that you've read the prerequisites section before continuing with this section. (Steps with individual headers go here) Notes
|
This template looks pretty fine. Please don't stop now! 😃 We could name this file: |
Hey @JohannesHoppe, I've generated a PR #77 for it. I hope that's useful. Thanks. |
Hello friends. I realized that we have now a Checkout v2 action (https://github.com/actions/checkout/) and it looks like we might be able to ommit GH_TOKEN (personal access token) and use the GITHUB_TOKEN. Has anybody already used v2? |
See angular-schule/angular-cli-ghpages#73 for more info.
@JohannesHoppe Looks like migrating to v2 of the I've successfully made the build process work, but it still seems that it's not possible to trigger a build. I'll try to see what I can do about this. |
fixed in v0.6.2 see https://github.com/angular-schule/angular-cli-ghpages/releases/tag/v0.6.2 |
@JohannesHoppe Looks like the And this run: https://github.com/EdricChan03/rss-reader/runs/447475521 EDIT: See EdricChan03/rss-reader-angular@25a570d for more info |
@EdricChan03 I should try this out! |
I suppose this issue can be closed? |
I've been trying to implement the ability for my application to be deployed for every new commit.
Although the command reports that my application was successfully deployed to the
gh-pages
branch, I don't see any new changes on the branch apart from the build I manually deployed about 9 days ago.You can view the project here for your reference: https://github.com/EdricChan03/rss-reader
I'm using the
ng deploy
command and I've verified that I've updated my Angular app's dependencies to the appropriate versions (e.g. upgrading Angular CLI tov8.3.0
which supports deploy builders). I've also verified that I can deploy my app via the command line locally.A method that one had suggested before was to append the
x-access-token
to the GitHub token, but that still didn't work.Here's my project's dependencies:
And the relevant GitHub Action workflow (available at
.github/workflows/main.yml
in my project):Note: I've also ensured that the
DEPLOY_GH_PAGES_TOKEN
I have specified in the Secrets tab of a repository has therepo
permission group ticked.EDIT: Here's the output of
ng version
attached below:EDIT 2: Here's the scripts defined in my
package.json
:EDIT 3: Here's the default configuration I have supplied for the deploy builder (extracted):
P.S. If you haven't heard of GitHub Actions yet, you can learn more about it here. I'm also in the beta which allows me to participate in such a beta feature.
The text was updated successfully, but these errors were encountered: