Skip to content

Fix typo

Fix typo #11

Workflow file for this run

# Author: Kang Lin<kl222@126.com>
# workflow syntax: https://docs.github.com/actions/writing-workflows/workflow-syntax-for-github-actions
name: build
env:
artifact_path: artifact_path
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RabbitIM_VERSION: 0.1.0
RabbitIM_VERSION_PRE: 0.1.0
on:
push:
pull_request:
jobs:
ubuntu:
uses: ./.github/workflows/ubuntu.yml
secrets: inherit
msvc:
uses: ./.github/workflows/msvc.yml
secrets: inherit
mingw:
uses: ./.github/workflows/mingw.yml
secrets: inherit
macos:
uses: ./.github/workflows/macos.yml
secrets: inherit
deploy:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
needs: [ubuntu, mingw, msvc]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
- name: Download ubuntu
uses: actions/download-artifact@v3
with:
name: ${{ needs.ubuntu.outputs.name }}
path: ${{ env.artifact_path }}
- name: Download msvc
uses: actions/download-artifact@v3
with:
name: ${{ needs.msvc.outputs.name }}
path: ${{ env.artifact_path }}
- name: Download mingw
uses: actions/download-artifact@v3
with:
name: ${{ needs.mingw.outputs.name }}
path: ${{ env.artifact_path }}
- name: Download macos
uses: actions/download-artifact@v3
with:
name: ${{ needs.macos.outputs.name }}
path: ${{ env.artifact_path }}
- name: Make note file
run: |
echo "[:cn: 修改日志](ChangeLog_zh_CN.md) [:us: Change log](ChangeLog.md)" > NoteFile
echo "" >> NoteFile
echo "File checksum:" >> NoteFile
cd ${{ env.artifact_path }}
for file in *
do
md5sum $file >> ../NoteFile
done
- name: Upload To Github Release
run: |
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --notes-file NoteFile
gh release upload ${{ github.ref_name }} ${{github.workspace}}/${{ env.artifact_path }}/*