From 689bcefc9f9a161fd3d5bc4798266d62abc9c0a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Qian=20Qian=20=22Cubik=22=E2=80=8E?= Date: Sat, 27 Jul 2024 13:04:50 -0400 Subject: [PATCH] ci: Add Swift Package Build & Publish steps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Qian Qian "Cubik"‎ --- .github/workflows/build-and-publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index d5fe386..23ebe90 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -18,3 +18,11 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + - name: Build Swift Package + run: cargo swift package + - name: Publish Swift Package + uses: LarchLiu/actions-save-files@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: package + publish_dir: ./TypstLibrarySwift