Skip to content

Commit

Permalink
Fixed authentication in GitHub workflow and removed pages deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
tomakehurst committed Jan 3, 2024
1 parent c0d182d commit a76076c
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/deploy-to-amplify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
group: "amplify"
cancel-in-progress: true

jobs:
# Build job
Expand Down Expand Up @@ -74,18 +70,16 @@ jobs:
# with:
# directory: ./_site
# enforce_https: false
- name: Deploy to Amplify
run: |
./deploy-to-amplify.sh

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
- uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::499333472133:role/GitHub-wiremock.org-Deploy
aws-region: us-east-1
- name: Deploy to Amplify
run: |
./deploy-to-amplify.sh

0 comments on commit a76076c

Please sign in to comment.