Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/

6 changes: 5 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
"tsConfig": "tsconfig.spec.json",
"assets": [
"src/favicon.ico",
"src/assets"
"src/assets",
"src/_redirects"
],
"styles": [
"src/styles.css"
Expand All @@ -91,5 +92,8 @@
}
}
}
},
"cli": {
"analytics": "d41c056c-319e-4151-ad9d-5e4b6977a157"
}
}
1 change: 1 addition & 0 deletions src/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /index.html 200
2 changes: 2 additions & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<main>
<h1>Hello</h1>
<h2>From {{ domain }}</h2>
<h2>This is my first change</h2>
<h2>This is my second change</h2>
</main>