From 8baa9811d392c9827d59fde95e18da7bad67ae07 Mon Sep 17 00:00:00 2001 From: Michal Vanko Date: Tue, 17 Sep 2024 21:38:04 +0200 Subject: [PATCH] release workflow --- .gitea/workflows/release.yaml | 23 +++++++++++++++++++++++ .gitea/workflows/test.yaml | 1 + 2 files changed, 24 insertions(+) create mode 100644 .gitea/workflows/release.yaml 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