From c4c0053755d92ac926f7f341e970cad31cb0217a Mon Sep 17 00:00:00 2001 From: Cael Date: Fri, 12 Jan 2024 02:03:00 +0800 Subject: [PATCH] ci: add release action --- .github/workflows/release.yaml | 42 ++++++++++++++++++++++++++++++++++ docs/index.html | 6 ++++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..78dad19 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,42 @@ +name: release + +on: + workflow_dispatch: + +jobs: + build: + name: ${{ matrix.target }} + runs-on: ubuntu-latest + strategy: + matrix: + include: + - target: x86_64-pc-windows-gnu + archive: zip + - target: x86_64-unknown-linux-musl + archive: tar.gz + - target: x86_64-apple-darwin + archive: zip + + steps: + - uses: actions/checkout@master + - uses: rust-build/rust-build.action@v1.4.4 + id: compile + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + RUSTTARGET: ${{ matrix.target }} + ARCHIVE_TYPES: ${{ matrix.archive }} + UPLOAD_MODE: none + MINIFY: true + - uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.target }} + path: ${{ steps.compile.outputs.BUILT_ARCHIVE }} + + release: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v2 + - name: List files + run: ll -R diff --git a/docs/index.html b/docs/index.html index eebaf3a..a368e11 100644 --- a/docs/index.html +++ b/docs/index.html @@ -12,7 +12,11 @@
-

Mdbook Embedify

+

+ Mdbook Embedify + version + license +

This is a mdbook preprocessor plugin that