Skip to content

ci: publish to release #10

ci: publish to release

ci: publish to release #10

Workflow file for this run

name: Build QQMsg
on:
push:
branches:
- master
paths:
- "QQMsg/**"
- ".github/workflows/build_qqmsg.yml"
jobs:
build:
strategy:
matrix:
arch:
- amd64
- amd64_x86
- amd64_arm64
name: build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- name: Compile QQMsg
shell: cmd
run: |
cl.exe QQMsg.cpp tree.c md5.c QQmsg_decode.c BlowFish.c /link /out:QQMsg.exe
dir
working-directory: QQMsg
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: QQMsg_${{ matrix.arch }}
path: QQMsg/*.exe
release:
name: release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v3
with:
path: artifacts
- name: Display structure of downloaded files
run: ls -R
working-directory: artifacts
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: latest
name: latest
draft: false
prerelease: false
fail_on_unmatched_files: true
files: 'artifacts/*'