rf/moves to official shuttle-hq action

This commit is contained in:
itsscb 2024-06-01 00:16:10 +02:00
parent a601280976
commit 2a77e21a5e

View File

@ -24,11 +24,11 @@ jobs:
- name: Install Tailwind CSS
run: npm install -D tailwindcss
working-directory: ./frontend
- name: Install trunk
run: cargo install trunk
- name: Rename Trunk.toml
run: mv Trunk.toml Trunk.bkp
working-directory: ./frontend
- name: Install trunk
run: cargo install trunk
- name: Build frontend
run: trunk build --release
working-directory: ./frontend
@ -43,11 +43,14 @@ jobs:
toolchain: stable
override: true
- name: Install cargo-shuttle
run: cargo install --locked cargo-shuttle
- name: Deploy to Shuttle
env:
SHUTTLE_TOKEN: ${{ secrets.SHUTTLE_TOKEN }}
run: |
cargo shuttle login --api-key $SHUTTLE_TOKEN
cargo shuttle deploy
- uses: shuttle-hq/deploy-action@main
with:
deploy-key: ${{ secrets.SHUTTLE_TOKEN }}
# run: cargo install --locked cargo-shuttle
# - name: Deploy to Shuttle
# env:
# SHUTTLE_TOKEN: ${{ secrets.SHUTTLE_TOKEN }}
# run: |
# cargo shuttle login --api-key $SHUTTLE_TOKEN
# cargo shuttle deploy