-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions workflow for build and deploy
- Loading branch information
1 parent
7763058
commit 39d55d1
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build and Deploy | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: All things angular | ||
uses: AhsanAyaz/angular-deploy-gh-pages-actions@[version] ## replace by latest version without it you will see Expected format {org}/{repo}[/path]@ref. Actual 'AhsanAyaz/angular-deploy-gh-pages-actions',Input string was not in a correct format. | ||
with: | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} # see the Configuration section for how you can create secrets | ||
build_configuration: production # The build environment for the app. please look configurations in your angular.json | ||
#base_href: /my-project/ # make sure this corresponds to https://<your_username>.github.io/<base_href>/ | ||
deploy_branch: gh-pages # The branch the action should deploy to. | ||
angular_dist_build_folder: dist/hestiatechnology.pt # The folder where your project is supposed to be after running ng build by the action. | ||
|
||
permissions: | ||
contents: write # Allow write permission to GITHUB_TOKEN to commit to deploy branch. |