If you don’t already have created a repo check this !
Otherwise you’ll just need to do this !
Il vas falloir créer une branche appellée “gh-pages”
git checkout -b gh-pages
Ensuite ajouter le package angular qui va nous permettre d’automatiser tout ca
https://github.com/angular-schule/angular-cli-ghpages#prerequisites
ng add angular-cli-ghpages
Et enfin il nous reste plus qu’a faire
ng deploy --base-href=/Lottery_Solidity_Angular/ --repo=https://github.com/CyrilCartoux/Lottery_Solidity_Angular.git
ng deploy --base-href=/kickstarter_solidity_ANGULAR/ --repo=https://github.com/CyrilCartoux/kickstarter_solidity_ANGULAR.git
kickstarter_solidity_ANGULAR
<aside> 🛠 ATTENTION A BIEN RENSEIGNER - -base-href sinon on se retrouve avec un site blanc et des erreurs 404 car github n’arrive pas a trouver le bon chemin pour nos fichiers
</aside>
Le projet est disponible a l’url https://<username>.github.io/<repositoryname>
Dans notre cas :
https://cyrilcartoux.github.io/Lottery_Solidity_Angular/
name: KickstarterApp-deploy
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Setup angular
run: npm ci
working-directory: kickstart-front
- name: Angular Deploy gh-pages Actions
uses: AhsanAyaz/[email protected]
with:
angular_project_dir: kickstart-front
github_access_token: ${{ secrets.GITHUB_TOKEN }}
build_configuration: production
base_href: /kickstarter_solidity_ANGULAR/
deploy_branch: gh-pages
angular_dist_build_folder: kickstart-front/dist/kickstart-front