Skip to content

Commit

Permalink
build: set environment based on branch ref
Browse files Browse the repository at this point in the history
Added environment variable to differentiate between 'main' and 'development' branches.
  • Loading branch information
gentlementlegen committed Nov 4, 2024
1 parent 82064c5 commit f496b20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/worker-delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
delete:
runs-on: ubuntu-latest
name: Delete Deployment
environment: ${{ github.ref == 'refs/heads/main' && 'main' || 'development' }}
steps:
- name: Setup Node
uses: actions/setup-node@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/worker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
environment: ${{ github.ref == 'refs/heads/main' && 'main' || 'development' }}
steps:
- name: Setup Node
uses: actions/setup-node@v4
Expand Down

0 comments on commit f496b20

Please sign in to comment.