ci(shuttle): fix deployment (#236)
* ci(shuttle): fix deployment * chore: add dummy file to trigger pipeline * chore: remove dummy file to trigger pipeline * ci(shuttle): remove dorny/paths-filter
This commit is contained in:
parent
48a3626c7d
commit
e06c18279e
|
@ -6,9 +6,6 @@ on:
|
||||||
- master
|
- master
|
||||||
tags:
|
tags:
|
||||||
- "v*.*.*"
|
- "v*.*.*"
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -24,12 +21,6 @@ jobs:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
- uses: dorny/paths-filter@v3
|
|
||||||
id: changes
|
|
||||||
with:
|
|
||||||
filters: |
|
|
||||||
manifest:
|
|
||||||
- 'Cargo.**'
|
|
||||||
- name: Install cargo-binstall
|
- name: Install cargo-binstall
|
||||||
uses: taiki-e/install-action@cargo-binstall
|
uses: taiki-e/install-action@cargo-binstall
|
||||||
- name: Install cargo-shuttle
|
- name: Install cargo-shuttle
|
||||||
|
@ -40,11 +31,7 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --locked --verbose
|
run: cargo build --locked --verbose
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: |
|
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' }}
|
||||||
${{ startsWith(github.event.ref, 'refs/tags/v') ||
|
|
||||||
github.event_name == 'workflow_dispatch' ||
|
|
||||||
steps.changes.outputs.manifest == 'true'
|
|
||||||
}}
|
|
||||||
run: |
|
run: |
|
||||||
cargo shuttle login --api-key ${{ secrets.SHUTTLE_TOKEN }}
|
cargo shuttle login --api-key ${{ secrets.SHUTTLE_TOKEN }}
|
||||||
cargo shuttle project restart
|
cargo shuttle project restart
|
||||||
|
|
Loading…
Reference in New Issue