Skip to content

Commit

Permalink
some GH workflow file formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Nov 1, 2024
1 parent aeb1e5e commit a491962
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ on:
permissions:
contents: write
pull-requests: write

env:
RUST_BACKTRACE: 1

jobs:
build:
runs-on: ubuntu-latest
outputs:
output_dir: ${{ steps.get_output_dir.outputs.output_dir }}

steps:
- uses: actions/checkout@v3
- run: rustup update
Expand Down Expand Up @@ -50,13 +55,13 @@ jobs:
with:
name: build_output_dir
path: ${{ steps.get_output_dir.outputs.output_dir }}
outputs:
output_dir: ${{ steps.get_output_dir.outputs.output_dir }}

deploy-preview:
if: github.event_name == 'pull_request'
needs: build
environment: pull_request_deployment
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
Expand All @@ -73,6 +78,7 @@ jobs:
message: |
Branch deployed for review at:
${{ steps.deploy.outputs.URL }}
deploy-production:
if: github.ref == 'refs/heads/main'
needs: build
Expand Down

0 comments on commit a491962

Please sign in to comment.