Merge pull request #5 from itsscb/ft-add-github-action-for-deployment

rf/moves to official shuttle-hq action
This commit is contained in:
itsscb 2024-06-01 00:19:18 +02:00 committed by GitHub
commit 689cd6fff6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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