Skip to content

Commit

Permalink
Change deployment workflow to be for main
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed Mar 21, 2024
1 parent 35c1a19 commit e1d263f
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/deploy-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
environment:
required: true
type: string
# FIXME remove
push:
branches: [ui/deploy-cs-6634]

permissions:
contents: read
Expand All @@ -27,9 +24,7 @@ jobs:

- name: Set up env
env:
# FIXME restore
INPUT_ENVIRONMENT: staging
# INPUT_ENVIRONMENT: ${{ inputs.environment }}
INPUT_ENVIRONMENT: ${{ inputs.environment }}
run: |
echo "AWS_REGION=us-east-1" >> $GITHUB_ENV
if [ "$INPUT_ENVIRONMENT" = "production" ]; then
Expand All @@ -55,14 +50,12 @@ jobs:
aws-region: us-east-1

- name: Deploy
# run: pnpm deploy:boxel-ui ${{ inputs.environment }} --verbose
run: pnpm deploy:boxel-ui staging --verbose
run: pnpm deploy:boxel-ui ${{ inputs.environment }} --verbose

# FIXME restore?
# - name: Send notification to Discord
# uses: cardstack/gh-actions/discord-notification-deploy@main
# with:
# app: "boxel-ui"
# status: ${{ job.status }}
# environment: ${{ inputs.environment }}
# webhook: ${{ secrets.DISCORD_WEBHOOK }}
- name: Send notification to Discord
uses: cardstack/gh-actions/discord-notification-deploy@main
with:
app: "boxel-ui"
status: ${{ job.status }}
environment: ${{ inputs.environment }}
webhook: ${{ secrets.DISCORD_WEBHOOK }}

0 comments on commit e1d263f

Please sign in to comment.