Skip to content

CI: modify doxygen.yml #158

CI: modify doxygen.yml

CI: modify doxygen.yml #158

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:
msvc:
uses: ./.github/workflows/msvc.yml
secrets: inherit
mingw:
uses: ./.github/workflows/mingw.yml
secrets: inherit
docker:
uses: ./.github/workflows/docker.yml
secrets: inherit
android:
uses: ./.github/workflows/android.yml
secrets: inherit
doxygen:
uses: ./.github/workflows/doxygen.yml
secrets: inherit
deploy:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
needs: [mingw, msvc, docker, android, doxygen]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true
- 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 docker
uses: actions/download-artifact@v4
with:
pattern: ${{ needs.docker.outputs.name }}*
path: ${{ env.artifact_path }}
merge-multiple: true
- name: Download android
uses: actions/download-artifact@v4
with:
pattern: ${{ needs.android.outputs.name }}*
path: ${{ env.artifact_path }}
merge-multiple: true
- name: Download doxygen
uses: actions/download-artifact@v4
with:
name: ${{ needs.doxygen.outputs.name }}
path: ${{ env.artifact_path }}
merge-multiple: true
- 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 }}/*