plate-tool/.gitea/workflows/beta-deploy.yaml

26 lines
724 B
YAML
Raw Normal View History

2023-12-30 17:28:15 +00:00
name: Beta Deploy
on:
push:
branches:
- beta-release
2023-12-30 17:36:28 +00:00
issue_comment:
2023-12-30 17:28:15 +00:00
jobs:
Compile-Plate-Tool:
runs-on: linux_arm
steps:
2023-12-30 17:42:44 +00:00
- name: Check out repo code
uses: https://github.com/actions/checkout@v4
with:
ref: "beta-release"
2023-12-30 17:44:39 +00:00
- name: Compile plate-tool
run: |
2023-12-30 17:54:47 +00:00
. "$HOME/.cargo/env"
2023-12-30 17:52:53 +00:00
trunk build --release --public-url "cool-stuff/plate-tool-beta/"
2023-12-30 18:09:15 +00:00
- name: Transfer files to host server
2023-12-30 18:03:41 +00:00
run: |
sftp oracle <<< "put -r dist"
2023-12-30 18:09:15 +00:00
- 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"