Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
8b16015
build yaml
shiva-nr May 25, 2022
1fd284f
removing dist
shiva-nr May 25, 2022
6a8e86e
adding user
shiva-nr May 26, 2022
467be11
modified user
shiva-nr May 26, 2022
a5701bb
update user
shiva-nr May 26, 2022
e1470f4
Create user
yaswanth507 May 26, 2022
f3bf437
Delete user
yaswanth507 May 26, 2022
1028035
FInal
shiva-nr May 26, 2022
7af81de
user
shiva-nr May 26, 2022
de57493
Merge branch 'v3.6' of github.com:yaswanth507/angular-github-actions …
shiva-nr May 26, 2022
7473c60
yashu
shiva-nr May 26, 2022
980c9f6
Create user
yaswanth507 May 26, 2022
ca1ff14
Delete user
yaswanth507 May 26, 2022
c9b9dfc
Create sample
yaswanth507 May 26, 2022
1d0e27e
Delete sample
yaswanth507 May 26, 2022
2f42284
Create sample
yaswanth507 May 26, 2022
ac633c9
Update Build.yaml
yaswanth507 May 26, 2022
7140bef
Update build.yaml
yaswanth507 May 26, 2022
ed041ea
Update build.yaml
yaswanth507 May 26, 2022
d10fa4a
Update build.yaml
yaswanth507 May 26, 2022
ed0c8dd
Update build.yaml
yaswanth507 May 26, 2022
5075ba8
Update build.yaml
yaswanth507 May 26, 2022
c0bdcc6
Update build.yaml
yaswanth507 May 26, 2022
60dc622
Update build.yaml
yaswanth507 May 26, 2022
38db9fa
Update build.yaml
yaswanth507 May 26, 2022
d8939c3
Update build.yaml
yaswanth507 May 26, 2022
08ace81
Update build.yaml
yaswanth507 May 26, 2022
b322e7b
Update build.yaml
yaswanth507 May 26, 2022
962e996
Update build.yaml
yaswanth507 May 26, 2022
a4a92cf
Update build.yaml
yaswanth507 May 26, 2022
96d94e7
Update build.yaml
yaswanth507 May 26, 2022
d8ed932
Update build.yaml
yaswanth507 May 26, 2022
80a0fb2
Update build.yaml
yaswanth507 May 26, 2022
5236a6d
Update build.yaml
yaswanth507 May 26, 2022
1d894c6
Update build.yaml
yaswanth507 May 27, 2022
6363ef6
Update build.yaml
yaswanth507 May 27, 2022
4aa08b8
Create github-actions-ec2.yml
yaswanth507 May 27, 2022
09b250f
Update build.yaml
yaswanth507 May 27, 2022
cf1dc8c
Update build.yaml
yaswanth507 May 27, 2022
2cc57a2
Update build.yaml
yaswanth507 May 27, 2022
f5aa0d0
Update index.html
yaswanth507 May 27, 2022
d044d2a
Delete user directory
yaswanth507 May 27, 2022
623079e
changing v3.6
shiva-nr May 27, 2022
ab083e8
Update build.yaml
yaswanth507 May 27, 2022
c202caf
Update github-actions-ec2.yml
yaswanth507 May 27, 2022
47c17f1
Update build.yaml
yaswanth507 May 27, 2022
40f3503
Update build.yaml
yaswanth507 May 27, 2022
11fc64f
Update github-actions-ec2.yml
yaswanth507 May 27, 2022
23f834a
Update github-actions-ec2.yml
yaswanth507 May 27, 2022
d019fa3
Update github-actions-ec2.yml
yaswanth507 May 27, 2022
a22a63b
Delete github-actions-ec2.yml
yaswanth507 May 27, 2022
b58d4cb
Update build.yaml
yaswanth507 May 27, 2022
9fa7655
Update build.yaml
yaswanth507 May 27, 2022
4ea1f89
Update build.yaml
yaswanth507 May 27, 2022
f13f257
Update build.yaml
yaswanth507 May 27, 2022
aa04d2c
Update package.json
yaswanth507 May 27, 2022
d9a395e
Update build.yaml
yaswanth507 May 27, 2022
ef12f3e
Update build.yaml
yaswanth507 May 27, 2022
6f2d8c3
Update build.yaml
yaswanth507 May 27, 2022
dfb87c2
Update build.yaml
yaswanth507 May 27, 2022
13fce87
Update build.yaml
yaswanth507 May 27, 2022
dd2f0a8
Update build.yaml
yaswanth507 May 27, 2022
60ef673
Update build.yaml
yaswanth507 May 27, 2022
5e648d2
Update build.yaml
yaswanth507 May 27, 2022
142fe64
Update build.yaml
yaswanth507 May 27, 2022
167a612
Update build.yaml
yaswanth507 May 27, 2022
5371cb2
Update build.yaml
yaswanth507 May 27, 2022
79664e8
Update build.yaml
yaswanth507 May 27, 2022
45a9c5e
Update build.yaml
yaswanth507 May 27, 2022
cc9de76
Update build.yaml
yaswanth507 May 27, 2022
5b27037
Update build.yaml
yaswanth507 May 27, 2022
395ab22
Update build.yaml
yaswanth507 May 27, 2022
6a036fa
Update build.yaml
yaswanth507 May 27, 2022
202bf91
Update build.yaml
yaswanth507 May 27, 2022
71c1cde
Update build.yaml
yaswanth507 May 28, 2022
9614860
Update build.yaml
yaswanth507 May 28, 2022
5c2140a
Update build.yaml
yaswanth507 May 28, 2022
3588470
Update build.yaml
yaswanth507 May 28, 2022
02771ed
Update build.yaml
yaswanth507 May 28, 2022
1c3ee88
Update build.yaml
yaswanth507 May 28, 2022
b75e028
Update build.yaml
yaswanth507 May 28, 2022
694ca8d
Update build.yaml
yaswanth507 May 28, 2022
e9319a8
Update build.yaml
yaswanth507 May 28, 2022
f15666c
Update build.yaml
yaswanth507 May 28, 2022
f3bc274
Update build.yaml
yaswanth507 May 28, 2022
5c519e7
Update angular.json
yaswanth507 May 28, 2022
9b1832c
Update build.yaml
yaswanth507 May 28, 2022
fed8772
zippings
shiva-nr May 29, 2022
d02c19d
Update build.yaml
yaswanth507 May 31, 2022
55bc442
remove
yaswanth507 May 31, 2022
63eba10
approved
shiva-nr May 31, 2022
4ed1918
Aprro
shiva-nr May 31, 2022
9309a3d
Update build.yaml
yaswanth507 May 31, 2022
3b42ba4
Update build.yaml
yaswanth507 Jun 1, 2022
3d7cf84
Update build.yaml
yaswanth507 Jun 1, 2022
2800092
Create Approve.yaml
yaswanth507 Jun 1, 2022
100f6bf
Update Approve.yaml
yaswanth507 Jun 1, 2022
65f6c56
Update Approve.yaml
yaswanth507 Jun 1, 2022
d25b355
Update Approve.yaml
yaswanth507 Jun 1, 2022
cc3d532
Delete Approve.yaml
yaswanth507 Jun 1, 2022
591c02a
Update build.yaml
yaswanth507 Jun 1, 2022
1645f37
workflow
yaswanth507 Jun 1, 2022
ae951a2
Update build.yaml
yaswanth507 Jun 1, 2022
ec20c53
Update build.yaml
yaswanth507 Jun 1, 2022
b04db9f
Update build.yaml
yaswanth507 Jun 1, 2022
1fb62b7
Update build.yaml
yaswanth507 Jun 1, 2022
4867524
Update build.yaml
yaswanth507 Jun 1, 2022
83b890f
Update build.yaml
yaswanth507 Jun 1, 2022
c5e7d42
Update build.yaml
yaswanth507 Jun 1, 2022
8896a5c
Update build.yaml
yaswanth507 Jun 1, 2022
6fedfb5
Update build.yaml
yaswanth507 Jun 1, 2022
eece397
Update build.yaml
yaswanth507 Jun 1, 2022
ede03f3
Update build.yaml
yaswanth507 Jun 1, 2022
9e37769
Update build.yaml
yaswanth507 Jun 1, 2022
472fd87
changes
yaswanth507 Jun 1, 2022
972e106
Update build.yaml
yaswanth507 Jun 1, 2022
ae31a73
Update build.yaml
yaswanth507 Jun 1, 2022
db79bb9
Update build.yaml
yaswanth507 Jun 1, 2022
c36335e
Update build.yaml
yaswanth507 Jun 1, 2022
f86fe7c
Update build.yaml
yaswanth507 Jun 2, 2022
00da3f9
Update build.yaml
yaswanth507 Jun 2, 2022
c182102
Update build.yaml
yaswanth507 Jun 2, 2022
9364cbb
Update build.yaml
yaswanth507 Jun 2, 2022
447400a
Update build.yaml
yaswanth507 Jun 2, 2022
c90450b
Update build.yaml
yaswanth507 Jun 2, 2022
aebc40f
Update build.yaml
yaswanth507 Jun 2, 2022
6321713
Update build.yaml
yaswanth507 Jun 2, 2022
594c862
Update build.yaml
yaswanth507 Jun 2, 2022
e8cba5b
Update build.yaml
yaswanth507 Jun 2, 2022
3d39998
Update build.yaml
yaswanth507 Jun 2, 2022
4caf8e4
Update build.yaml
yaswanth507 Jun 2, 2022
3a720bf
Update build.yaml
yaswanth507 Jun 2, 2022
0023e99
Update build.yaml
yaswanth507 Jun 2, 2022
c0de4ae
Update build.yaml
yaswanth507 Jun 2, 2022
b69ce27
Update build.yaml
yaswanth507 Jun 2, 2022
6c18f56
Update build.yaml
yaswanth507 Jun 2, 2022
f064011
Update build.yaml
yaswanth507 Jun 2, 2022
6384f29
Update build.yaml
yaswanth507 Jun 2, 2022
d977267
Update build.yaml
yaswanth507 Jun 2, 2022
fb7dcb9
Update build.yaml
yaswanth507 Jun 2, 2022
a2fd61c
Update build.yaml
yaswanth507 Jun 2, 2022
0b042a3
Update build.yaml
yaswanth507 Jun 2, 2022
b681de4
Update build.yaml
yaswanth507 Jun 2, 2022
d53d8dc
Update build.yaml
yaswanth507 Jun 2, 2022
9195373
Create sample.yaml
yaswanth507 Jun 13, 2022
7756e83
Update sample.yaml
yaswanth507 Jun 13, 2022
12e6d70
Update build.yaml
yaswanth507 Jun 14, 2022
8dfee17
Update build.yaml
yaswanth507 Jun 14, 2022
a2d70c6
Update build.yaml
yaswanth507 Jun 14, 2022
42cf555
Update build.yaml
yaswanth507 Jun 14, 2022
1f471a6
Update build.yaml
yaswanth507 Jun 14, 2022
c15d4d7
Update build.yaml
yaswanth507 Jun 14, 2022
f7c8bcc
Update build.yaml
yaswanth507 Jun 14, 2022
330c1ea
Update build.yaml
yaswanth507 Jun 14, 2022
3cccccd
Update build.yaml
yaswanth507 Jun 14, 2022
20b4be7
Update build.yaml
yaswanth507 Jun 14, 2022
2351159
Update build.yaml
yaswanth507 Jun 14, 2022
5e014ba
Update build.yaml
yaswanth507 Jun 14, 2022
983962a
Update build.yaml
yaswanth507 Jun 14, 2022
58c1222
Update build.yaml
yaswanth507 Jun 14, 2022
1b1c518
Update build.yaml
yaswanth507 Jun 14, 2022
336ff4a
Update build.yaml
yaswanth507 Jun 14, 2022
bf2f0b5
Update build.yaml
yaswanth507 Jun 14, 2022
00851d1
Update build.yaml
yaswanth507 Jun 14, 2022
c5a427c
Update build.yaml
yaswanth507 Jun 14, 2022
c7229ad
Update build.yaml
yaswanth507 Jun 14, 2022
1f20e79
Update build.yaml
yaswanth507 Jun 14, 2022
33fdb9c
Update build.yaml
yaswanth507 Jun 14, 2022
9c4cdb9
Update build.yaml
yaswanth507 Jun 14, 2022
237f4e6
Update build.yaml
yaswanth507 Jun 14, 2022
77dd45c
Update build.yaml
yaswanth507 Jun 14, 2022
492a0ed
Update build.yaml
yaswanth507 Jun 15, 2022
af20aa6
Update build.yaml
yaswanth507 Jun 15, 2022
208cb64
Update build.yaml
yaswanth507 Jun 15, 2022
97ea403
Update build.yaml
yaswanth507 Jun 15, 2022
a2f59ca
Update build.yaml
yaswanth507 Jun 15, 2022
ed69e0e
Update build.yaml
yaswanth507 Jun 15, 2022
2e1c3f4
Update build.yaml
yaswanth507 Jun 15, 2022
c64ffce
Update build.yaml
yaswanth507 Jun 15, 2022
accfd02
Update build.yaml
yaswanth507 Jun 16, 2022
0da2017
Update build.yaml
yaswanth507 Mar 29, 2023
ffc3306
Update build.yaml
yaswanth507 Mar 31, 2023
9f80579
Update build.yaml
yaswanth507 Mar 31, 2023
5ddd906
Update build.yaml
yaswanth507 Mar 31, 2023
2862d1f
Update build.yaml
yaswanth507 Mar 31, 2023
32650c9
Update build.yaml
yaswanth507 Mar 31, 2023
87e10cd
Update build.yaml
yaswanth507 Mar 31, 2023
2eb00c7
Update build.yaml
yaswanth507 Mar 31, 2023
c7fde11
Update build.yaml
yaswanth507 Mar 31, 2023
9b2e3d4
Update build.yaml
yaswanth507 Mar 31, 2023
e2a3465
Update build.yaml
yaswanth507 Mar 31, 2023
2359fff
Update build.yaml
yaswanth507 Mar 31, 2023
a2ce77b
Update build.yaml
yaswanth507 Mar 31, 2023
762f097
Update build.yaml
yaswanth507 Mar 31, 2023
d39486a
Update build.yaml
yaswanth507 Mar 31, 2023
fcf093d
Update build.yaml
yaswanth507 Mar 31, 2023
c953970
Update build.yaml
yaswanth507 Mar 31, 2023
0a8c91b
Update build.yaml
yaswanth507 Apr 3, 2023
870cc03
Update build.yaml
yaswanth507 Apr 3, 2023
cd8cdff
Update build.yaml
yaswanth507 Apr 3, 2023
5058869
Update build.yaml
yaswanth507 Apr 3, 2023
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
118 changes: 118 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: GitHub Pages
on:
push:
branches:
- v3.5
jobs:
Approve :
runs-on: ubuntu-latest
environment: build
steps:
- name: Checkout
uses: actions/checkout@v2
build:
runs-on: ubuntu-latest
needs: Approve
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install dependencies
run: |
npm install -g @angular/cli
mkdir user
cd user
ls -la
npm i
npm run build:prod
ls -la
- name: listing
run: |
ls -la
cd dist
ls -la
- name: zipping
uses: papeloto/action-zip@v1
with:
files: dist/user
dest: user.zip
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
with:
name: user
path: user.zip
deploy_to_dev:
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request'
environment: Dev
steps:
- name: checkout
uses: actions/checkout@v2
- name: Download build
uses: actions/download-artifact@v3
with:
name: user
- name: Display structure of downloaded files
run: ls -R
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.KEY }}
SOURCE: "user.zip"
REMOTE_HOST: ${{ secrets.HOST_DNS }}
REMOTE_USER: ${{ secrets.USERNAME }}
TARGET: ${{ secrets.V35_DIR }}

deploy_to_staging:
runs-on: ubuntu-latest
needs: deploy_to_dev
if: github.event_name != 'pull_request'
environment: Staging
steps:
- name: checkout
uses: actions/checkout@v2
- name: Download build
uses: actions/download-artifact@v3
with:
name: user
- name: Display structure of downloaded files
run: ls -R
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.KEY }}
SOURCE: "user.zip"
REMOTE_HOST: ${{ secrets.HOST_DNS }}
REMOTE_USER: ${{ secrets.USERNAME }}
TARGET: ${{ secrets.STAG_DIR }}
script: sh unzip.sh



deploy_to_prod:
runs-on: ubuntu-latest
needs: deploy_to_staging
if: github.event_name != 'pull_request'
environment: Prod
steps:
- name: checkout
uses: actions/checkout@v2
- name: Download build
uses: actions/download-artifact@v3
with:
name: user
- name: Display structure of downloaded files
run: ls -R
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.KEY }}
SOURCE: "user.zip"
REMOTE_HOST: ${{ secrets.HOST_DNS }}
REMOTE_USER: ${{ secrets.USERNAME }}
TARGET: ${{ secrets.PROD_DIR }}
script: sh unzip.sh
35 changes: 0 additions & 35 deletions .github/workflows/gh-pages.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/sample.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI + CD

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Compile
run: echo Hello, world!

DeployDev:
name: Deploy to Development
if: github.event_name == 'pull_request'
needs: [Build]
runs-on: ubuntu-latest
environment:
name: Development
url: 'http://dev.myapp.com'
steps:
- name: Deploy
run: echo I am deploying!

DeployStaging:
name: Deploy to Staging
if: github.event.ref == 'refs/heads/main'
needs: [Build]
runs-on: ubuntu-latest
environment:
name: Staging
url: 'http://test.myapp.com'
steps:
- name: Deploy
run: echo I am deploying!

DeployProd:
name: Deploy to Production
needs: [DeployStaging]
runs-on: ubuntu-latest
environment:
name: Production
url: 'http://www.myapp.com'
steps:
- name: Deploy
run: echo I am deploying!
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/user
/dist
/tmp
/out-tsc
Expand Down
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/angular-github-actions",
"outputPath": "dist/user",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build:prod": "ng build --configuration production --base-href https://rodrigokamada.github.io/angular-github-actions/",
"build:prod": "ng build --configuration production",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"test:headless": "ng test --watch=false --browsers=ChromeHeadless"
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Angular Github Actions</title>
<title>Angular Github Actions2</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
Expand Down