Release mmserver #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- 'mmserver-test-ci-release' | |
jobs: | |
create_release: | |
name: Create mmserver release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: x86_64-unknown-linux-gnu | |
- uses: actions/checkout@v2 | |
- uses: swatinem/rust-cache@v2 | |
with: | |
workspaces: | | |
mm-server | |
mm-client | |
mm-protocol | |
- name: install deps | |
run: sudo apt install nasm cmake | |
- name: cargo build | |
run: (cd mm-server && cargo build --bin mmserver --release --target x86_64-unknown-linux-gnu) | |
- run: |- | |
mkdir "${RUNNER_TMP}/${GITHUB_REF_NAME}" | |
cp -r mm-server/target/release/mmserver README.md "${RUNNER_TMP}/${GITHUB_REF_NAME}" | |
cp LICENSES/BUSL-1.1.txt "${RUNNER_TMP}/${GITHUB_REF_NAME}/LICENSE.txt" | |
tar -C "${RUNNER_TMP}" --numeric-owner -cvzf "${GITHUB_REF_NAME}-linux-amd64.tar.gz" "$GITHUB_REF_NAME" | |
- run: cargo install git-cliff | |
- name: generate release notes | |
run: |- | |
echo "Server version ${GITHUB_REF_NAME/mmserver-v//}" >> release-notes.txt | |
git cliff -c .github/workflows/cliff.toml --include-path "mm-server/**/*" | tail -n +2 >> release-notes.txt | |
- name: create release | |
uses: softprops/action-gh-release@v2 | |
with: | |
body_path: release-notes.txt | |
files: "mmserver-*.tar.gz" | |
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |