diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..dcc8be5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,18 @@ +name: Trigger Netlify Build +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + name: "Deploy to Netlify" + steps: + - uses: actions/checkout@v3 + - uses: jsmrcaga/action-netlify-deploy@v2.4.0 + with: + NETLIFY_AUTH_TOKEN: ${{ secrets.EXERCISE_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.SITE_ID }} + NETLIFY_DEPLOY_TO_PROD: true + build_directory: dist/hello-ci-cd/browser diff --git a/README.md b/README.md index 5950904..624e47f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +# MY SITE: +https://football-shirt-gallery.netlify.app/ + + + + # Angular CI/CD ## Learning objectives diff --git a/angular.json b/angular.json index e34620a..b8e72eb 100644 --- a/angular.json +++ b/angular.json @@ -91,5 +91,8 @@ } } } + }, + "cli": { + "analytics": false } } diff --git a/src/app/app.component.html b/src/app/app.component.html index de43290..cf73a65 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,4 @@
-

Hello

+

CI/CD Exercise

From {{ domain }}