31 lines
636 B
YAML
31 lines
636 B
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
|
|
- uses: Swatinem/rust-cache@v2
|
|
- uses: taiki-e/install-action@just
|
|
- run: cd axum_server && just prod &
|
|
- uses: iFaxity/wait-on-action@v1.2.1
|
|
with:
|
|
resource: http://localhost:3001
|
|
- run: cd axum_server && just ssg
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: dist
|
|
path: axum_server/dist/
|
|
retention-days: 10
|
|
|
|
|