Merge pull request #5 from itsscb/ft-add-github-action-for-deployment
rf/moves to official shuttle-hq action
This commit is contained in:
commit
689cd6fff6
21
.github/workflows/deploy.yml
vendored
21
.github/workflows/deploy.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user