michalvankodev-site/.gitea/workflows/release.yaml
Michal Vanko fbb70fa6f2
Some checks failed
test / cargo test (push) Failing after 2m26s
deploy script
2024-09-18 12:47:25 +02:00

32 lines
749 B
YAML

name: release
on: workflow_dispatch
env:
PORT: 3081
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: cache
uses: Swatinem/rust-cache@v2
working-directory: axum_server
- uses: taiki-e/install-action@just
- uses: JarvusInnovations/background-action@v1
run: cd axum_server && just prod
working-directory: axum_server
wait-on: http://localhost:3001
wait-for: 10m
tail: true
- run: cd axum_server && just ssg
- uses: actions/upload-artifact@v4
with:
name: dist
path: axum_server/dist/
retention-days: 10