diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..9c9652e --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,23 @@ +name: release +on: + push: + branches: + - main + +jobs: + release: + name: release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - uses: extractions/setup-just@v2 + - run: cd axum_server && just export + - uses: actions/upload-artifact@v4 + with: + name: dist + path: axum_server/dist/ + retention-days: 10 + + diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 1ed905a..be86089 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -8,4 +8,5 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 - run: cd axum_server && cargo test --all-features