Skip to content

Commit

Permalink
chore: update workflows
Browse files Browse the repository at this point in the history
将构建产物创建 release
  • Loading branch information
chenchongbiao committed Sep 27, 2023
1 parent b9e0f96 commit d38cb8e
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/mdbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ name: MSBuild
on:
push:
branches: ["master"]
pull_request:
pull_request_target:
branches: ["master"]
types: [closed]
workflow_dispatch:

env:
SOLUTION_FILE_PATH: .
APPX_CERTIFICATE_PASSWORD: ${{ secrets.APPX_CERTIFICATE_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
ACTION_TOKEN: ${{ secrets.ACTION_TOKEN }}

permissions:
contents: read
Expand Down Expand Up @@ -45,7 +46,7 @@ jobs:
GITHUB_ENV: ${{ env.GITHUB_ENV }}

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
uses: microsoft/setup-msbuild@v1.1

- name: Setup Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -79,15 +80,16 @@ jobs:
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: python build.py --target=build --config=release --platform=${{ matrix.arch }}

# - name: print file
# run: tree AppPackages/deepinWSL-Appx/deepinWSL-Appx_${{ env.VERSION }}_Test

# - name: Upload file to release
# uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ env.GITHUB_TOKEN }}"
# automatic_release_tag: "v${{ env.VERSION }}-${{ matrix.arch }}"
# prerelease: true
# title: "V${{ env.VERSION }}-${{ matrix.arch }}"
# files: |
# version.txt
# - name: ls file
# run: ls AppPackages/deepinWSL-Appx/deepinWSL-Appx_${{ env.VERSION }}_Test

- name: Upload file to release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ env.ACTION_TOKEN }}"
automatic_release_tag: "v${{ env.VERSION }}-${{ matrix.arch }}"
prerelease: true
title: "V${{ env.VERSION }}-${{ matrix.arch }}"
files: |
AppPackages/deepinWSL-Appx/deepinWSL-Appx_${{ env.VERSION }}_Test/deepinWSL-Appx_${{ env.VERSION }}_${{ matrix.arch }}.cer
AppPackages/deepinWSL-Appx/deepinWSL-Appx_${{ env.VERSION }}_Test/deepinWSL-Appx_${{ env.VERSION }}_${{ matrix.arch }}.appxbundle

0 comments on commit d38cb8e

Please sign in to comment.