michalvankodev-site/.gitea/workflows/release.yaml
Michal Vanko 2e9e88b052
Some checks failed
release / release (push) Failing after 2m38s
test / cargo test (push) Failing after 2m19s
try thiiis
2024-09-18 13:10:06 +02:00

46 lines
1.1 KiB
YAML

name: release
on:
push:
branches:
main
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
# with:
# run: just prod &
# working-directory: axum_server
# wait-on: http://localhost:3081
# wait-for: 10m
# tail: true
- uses: nickderobertis/background-task-action@v1
with:
run: cd axum_server && just prod
- name: Wait for server
run: |
curl --retry 20 --retry-delay 3 --fail --retry-connrefused -Lsv http://localhost:3081
- name: run ssg
run: just ssg
working-directory: axum_server
- uses: actions/upload-artifact@v4
with:
name: dist
path: axum_server/dist/
retention-days: 10