Skip to content

Commit

Permalink
Infrastructure: Use GH_TOKEN token in actions that push to protected …
Browse files Browse the repository at this point in the history
…branches (pull #1504)

Modify deploy action workflow to use token stored in GitHub Secret to authenticate when pushing to protected branch.

Co-authored-by: Matt King <[email protected]>
  • Loading branch information
nschonni and mcking65 authored Aug 26, 2020
1 parent 51cf5d7 commit caba008
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }}
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -24,6 +26,7 @@ jobs:
with:
path: deploy
ref: gh-pages
token: ${{ env.GH_TOKEN }}

- name: Cleanup old files
run: |
Expand Down

0 comments on commit caba008

Please sign in to comment.