Skip to content

Commit 485fac2

Browse files
authored
Merge pull request #1364 from dearrudam/github-pages
Renamed front-end sources; prepared to CI/CD using GitHub Pages
2 parents 2b1c3f3 + 4e26607 commit 485fac2

File tree

117 files changed

+19
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+19
-16
lines changed

.github/workflows/github-pages.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
matrix:
2222
node-version: [16.x]
2323
base_href: [vagas-java]
24+
work_dir: [front-end]
2425
# Steps represent a sequence of tasks that will be executed as part of the job
2526
steps:
2627
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -34,15 +35,15 @@ jobs:
3435
# Github access token token used to deploy on gh_pages. You can find it on Github.
3536
github_access_token: ${{ secrets.GITHUB_TOKEN }}
3637
# The directory of the angular project, in which all the commands will run. It's optional, default is ./
37-
angular_project_dir: ./codigofonte/ionicv4/soujavaVagas/
38+
angular_project_dir: ${{ matrix.work_dir }}
3839
# Build configuration for the angular app
3940
build_configuration: production # optional, default is production
4041
# base href for the app
4142
base_href: /${{ matrix.base_href }}/ # optional, default is /
4243
# branch on which the angular build will be deployed
4344
deploy_branch: gh-pages # optional, default is gh-pages
4445
# The folder in which `ng build` provides its output. This is the folder which will be deployed to the `deploy_branch`.
45-
angular_dist_build_folder: dist/${{ matrix.base_href }} # optional, default is dist
46+
angular_dist_build_folder: ${{ matrix.work_dir }}/dist # optional, default is dist
4647
# If the action should run 'ng lint'
4748
# run_lint: # optional
4849
# Will not fail the step if anything fails

codigofonte/ionicv4/soujavaVagas/src/environments/environment.prod.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

codigofonte/ionicv4/soujavaVagas/.angulardoc.json renamed to front-end/.angulardoc.json

File renamed without changes.

codigofonte/ionicv4/soujavaVagas/.browserslistrc renamed to front-end/.browserslistrc

File renamed without changes.

codigofonte/ionicv4/soujavaVagas/.gitignore renamed to front-end/.gitignore

File renamed without changes.

codigofonte/ionicv4/soujavaVagas/angular.json renamed to front-end/angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build": {
1515
"builder": "@angular-devkit/build-angular:browser",
1616
"options": {
17-
"outputPath": "www",
17+
"outputPath": "dist",
1818
"index": "src/index.html",
1919
"main": "src/main.ts",
2020
"polyfills": "src/polyfills.ts",

codigofonte/ionicv4/soujavaVagas/config.xml renamed to front-end/config.xml

File renamed without changes.

codigofonte/ionicv4/soujavaVagas/e2e/protractor.conf.js renamed to front-end/e2e/protractor.conf.js

File renamed without changes.

codigofonte/ionicv4/soujavaVagas/e2e/src/app.e2e-spec.ts renamed to front-end/e2e/src/app.e2e-spec.ts

File renamed without changes.

codigofonte/ionicv4/soujavaVagas/e2e/src/app.po.ts renamed to front-end/e2e/src/app.po.ts

File renamed without changes.

0 commit comments

Comments
 (0)