Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ on:
required: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: read
pull-requests: write
defaults:
run:
shell: bash
Expand All @@ -53,6 +56,8 @@ jobs:
run: composer -n ci-compile-theme
- name: Build React app(s) for deployment
run: composer -n ci-compile-react
- name: Build docs for deployment
run: composer -n ci-compile-docs
- name: Remove files that should not be deployed
run: |
sed -n '/# *:.*cut.*:/,$p' .gitignore > ../deploy.gitignore
Expand Down Expand Up @@ -232,8 +237,8 @@ jobs:
set -e
if [ $PANTHEON_SITE_EXISTS -eq 0 ]; then
terminus multidev:create $TERMINUS_SITE.dev $TERMINUS_ENV
curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
--request POST \
--data '{"body": "Created feature testing environment at https://'$TERMINUS_ENV'-'$TERMINUS_SITE'.pantheonsite.io/"}' \
"https://api.github.com/repos/${GITHUB_REPOSITORY}/issues/$PR_NUMBER/comments"
Expand Down