CI for deploy to beta
Beta Deploy / Compile-Plate-Tool (push) Successful in 1m34s Details

This commit is contained in:
Emilia Allison 2023-12-30 13:14:29 -05:00
parent bce56be33e
commit 95b81a7858
Signed by: emilia
GPG Key ID: 7A3F8997BFE894E0
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
name: Beta Deploy
on:
push:
branches:
- beta-release
jobs:
Compile-Plate-Tool:
runs-on: linux_arm
steps:
- name: Check out repo code
uses: https://github.com/actions/checkout@v4
with:
ref: "beta-release"
- name: Compile plate-tool
run: |
. "$HOME/.cargo/env"
trunk build --release --public-url "cool-stuff/plate-tool-beta/"
- name: Transfer files to host server
run: |
sftp oracle <<< "put -r dist"
- name: Deploy plate-tool-beta on host server
run: |
ssh oracle "sudo rm -rf /usr/share/nginx/html/plate-tool-beta/ && sudo mv dist /usr/share/nginx/html/plate-tool-beta"