Skip to content

Commit

Permalink
Pass code from build step to deploy step
Browse files Browse the repository at this point in the history
Toward #755.
  • Loading branch information
waldoj committed Dec 3, 2021
1 parent 2199943 commit 960a7c2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,21 @@ jobs:
elif [ "$GITHUB_BRANCH" = "deploy" ]; then
cp appspec-deploy.yml appspec.yml
fi
- name: Save secret-populated code for a subsequent deploy step
uses: actions/upload-artifact@v2
with:
name: codebase
path: .
deploy:
runs-on: ubuntu-18.04
needs: build # Don't deploy unless the build succeeds
env:
GITHUB_BRANCH: ${{ github.head_ref }}
steps:
- uses: actions/checkout@v2
- name: Get the secret-populated code
uses: actions/download-artifact@v2
with:
name: codebase
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down

0 comments on commit 960a7c2

Please sign in to comment.