diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..be6d82c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +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.NEW_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.MY_SITE_ID }} + NETLIFY_DEPLOY_TO_PROD: true + build_directory: dist/hello-ci-cd/browser + # build_directory: dist/romanswebsite/browser \ No newline at end of file diff --git a/README.md b/README.md index 5950904..91445f5 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,8 @@ Save this token somewhere as we will need it later. Once a token is created (and ## Instructions Using what was covered in the morning - create a github action that will deploy the website using netlify + +## Netlify + +https://romanswebsite.netlify.app/ + diff --git a/angular.json b/angular.json index e34620a..3bf409e 100644 --- a/angular.json +++ b/angular.json @@ -81,7 +81,8 @@ "tsConfig": "tsconfig.spec.json", "assets": [ "src/favicon.ico", - "src/assets" + "src/assets", + "src/_redirects" ], "styles": [ "src/styles.css" @@ -91,5 +92,8 @@ } } } + }, + "cli": { + "analytics": "d41c056c-319e-4151-ad9d-5e4b6977a157" } } diff --git a/src/_redirects b/src/_redirects new file mode 100644 index 0000000..ad37e2c --- /dev/null +++ b/src/_redirects @@ -0,0 +1 @@ +/* /index.html 200 diff --git a/src/app/app.component.html b/src/app/app.component.html index de43290..d4731bc 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,6 @@

Hello

From {{ domain }}

+

This is my first change

+

This is my second change