Skip to content

Commit

Permalink
deploy to custom PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
ebisbe committed Jul 12, 2024
1 parent 28f0712 commit 4108817
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,20 @@ jobs:

- uses: pnpm/action-setup@v4

- name: Determine branch name
id: branch_name
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "STAGE=pr_${{ github.event.pull_request.number }}" >> $GITHUB_ENV
else
echo "STAGE=dev" >> $GITHUB_ENV
fi
- name: Deploy service
env:
SERVERLESS_ACCESS_KEY: ${{secrets.SERVERLESS_ACCESS_KEY}}
run: |
pnpm install
pnpm test
pnpm sls deploy
pnpm sls deploy --stage=$STAGE
pnpm test-e2e

0 comments on commit 4108817

Please sign in to comment.