Skip to content

Commit

Permalink
Add write permission to GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
nemkin authored and AhsanAyaz committed Mar 5, 2023
1 parent fd0c626 commit dae678c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ jobs:
- 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.ACCESS_TOKEN }} # see the Configuration section for how you can create secrets
github_access_token: ${{ secrets.GITHUB_TOKEN }} # see the Configuration section for how you can create secrets
build_configuration: staging # 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/my-project # 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.
```
If you'd like to make it so the workflow only triggers on push events to specific branches then you can modify the `on` section.
Expand Down

0 comments on commit dae678c

Please sign in to comment.