Skip to content

Commit

Permalink
chore(shuttle): deploy when Shuttle dependency is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Nov 29, 2023
1 parent 7c9f443 commit ed9f6aa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/shuttle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
- master
workflow_dispatch:


jobs:
build:
name: Build / Deploy
Expand All @@ -25,6 +24,12 @@ jobs:
toolchain: stable
profile: minimal
override: true
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
manifest:
- 'Cargo.**'
- name: Install cargo-binstall
uses: taiki-e/install-action@cargo-binstall
- name: Install cargo-shuttle
Expand All @@ -35,7 +40,8 @@ jobs:
- name: Build
run: cargo build --locked --verbose
- name: Deploy
if: ${{ startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' }}
if: ${{ startsWith(github.event.ref, 'refs/tags/v') || \
github.event_name == 'workflow_dispatch' || steps.changes.outputs.manifest == 'true' }}
run: |
cargo shuttle login --api-key ${{ secrets.SHUTTLE_TOKEN }}
cargo shuttle project restart
Expand Down

0 comments on commit ed9f6aa

Please sign in to comment.