Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mgz0227 authored Mar 1, 2024
1 parent 98a0b5e commit f766cd8
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ jobs:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')"

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: aooserver
path: Builds/LinuxMakefile/aooserver # 替换成你的文件路径

- name: Create release
id: create_release
Expand All @@ -44,16 +38,21 @@ jobs:
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.MY_TOKEN }}

- name: Upload release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: Builds/LinuxMakefile/aooserver # 替换成你的文件路径
asset_name: aooserver # 替换成你的文件名称
asset_content_type: application/octet-stream # 替换成你的文件类型
asset_path: Builds/LinuxMakefile/build/aooserver # 更新为正确的文件路径
asset_name: aooserver # 更新为正确的文件名称
asset_content_type: application/octet-stream # 更新为正确的文件类型
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.MY_TOKEN }}

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: aooserver
path: Builds/LinuxMakefile/build/aooserver # 更新为正确的文件路径

0 comments on commit f766cd8

Please sign in to comment.