Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 300e814

Browse files
committed
Angular: Setup Github page
1 parent efc35a9 commit 300e814

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
2+
# Workaround: https://github.com/redhat-developer/vscode-yaml/issues/397
3+
4+
name: Build and Deploy to Github Page
5+
on:
6+
push:
7+
branches:
8+
- master
9+
workflow_dispatch:
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out repo on master
15+
uses: actions/checkout@v2
16+
with:
17+
ref: master
18+
19+
- name: Build angular project and publish to github page
20+
uses: AhsanAyaz/angular-deploy-gh-pages-actions@v1.3.1
21+
with:
22+
github_access_token: ${{ secrets.ACCESS_TOKEN }} # see the Configuration section for how you can create secrets
23+
angular_project_dir: Angular
24+
build_configuration: production # The build environment for the app. please look configurations in your angular.json
25+
deploy_branch: gh-pages # The branch the action should deploy to.
26+
angular_dist_build_folder: Angular/dist/google-oidc-angular-aspnetweb-api-auth-code-flow # The folder where your project is supposed to be after running ng build by the action.

0 commit comments

Comments
 (0)