Mdbook Embedify
+
+ Mdbook Embedify
+
+
+
This is a mdbook preprocessor plugin that
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..27c422c --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,46 @@ +name: release + +on: + push: + tags: + - "*" + workflow_dispatch: + +jobs: + build: + name: ${{ matrix.target }} + runs-on: ubuntu-latest + strategy: + matrix: + include: + - target: x86_64-pc-windows-gnu + - target: x86_64-unknown-linux-musl + - target: x86_64-apple-darwin + + steps: + - uses: actions/checkout@master + - uses: rust-build/rust-build.action@v1.4.4 + id: compile + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + ARCHIVE_NAME: mdbook-embedify-${{ github.ref }}-${{ matrix.target }}.zip + RUSTTARGET: ${{ matrix.target }} + UPLOAD_MODE: none + - uses: actions/upload-artifact@v3 + with: + name: bin + path: ${{ steps.compile.outputs.BUILT_ARCHIVE }} + + release: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v2 + - name: Install packages + run: sudo apt-get update && sudo apt-get install -y unzip upx-ucl + - name: Test files + run: | + unzip -u bin/*.zip -d bin && rm bin/*.zip + upx --best bin/* + ls -l bin/* 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 @@
This is a mdbook preprocessor plugin that