Skip to content

Commit

Permalink
chore: Update Windows workflow to include debugging information for W…
Browse files Browse the repository at this point in the history
…indows and macOS build artifacts
  • Loading branch information
suifei committed May 25, 2024
1 parent d7172b5 commit 41cb142
Showing 1 changed file with 1 addition and 52 deletions.
53 changes: 1 addition & 52 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,55 +28,4 @@ jobs:
with:
name: macos-build
path: ./release/macos

- name: 获取当前时间 (Get Current Time)
id: current-time
uses: 1466587594/get-current-time@v2
with:
format: YYYY-MM-DD-HH-mm-ss
utcOffset: "+08:00"

- name: 创建发布 (Create Release)
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.ref_name }}-${{ steps.current-time.outputs.formattedTime }}
release_name: Release v${{ github.ref_name }} (${{ steps.current-time.outputs.formattedTime }})
draft: false
prerelease: false

- name: 调试 Windows 构建产物 (Debug Windows Build Artifacts)
run: |
echo "Windows 构建产物目录内容:"
ls -al ./release/windows-mingw64
echo "Windows 构建产物目录中的 ZIP 文件:"
find ./release/windows-mingw64 -name "*.zip"
- name: 上传 Windows 发布资源 (Upload Windows Release Assets)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/windows-mingw64/asm2hex-windows-mingw64.zip
asset_name: asm2hex-windows-mingw64.zip
asset_content_type: application/zip

- name: 调试 macOS 构建产物 (Debug macOS Build Artifacts)
run: |
echo "macOS 构建产物目录内容:"
ls -al ./release/macos
echo "macOS 构建产物目录中的 ZIP 文件:"
find ./release/macos -name "*.zip"
- name: 上传 macOS 发布资源 (Upload macOS Release Assets)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/macos/asm2hex-macos.zip
asset_name: asm2hex-macos.zip
asset_content_type: application/zip

0 comments on commit 41cb142

Please sign in to comment.