Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xingxing2008 committed Nov 11, 2023
1 parent a7f633a commit 003bcaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ jobs:
runs-on: ubuntu-latest
name: Pre-Publish
needs: [build,release,Create-Tag]
if: ${{ (contains(github.ref,'refs/tags/beta')||(inputs.flag&&contains(needs.Create-Tag.outputs.tag,'beta')))&&!failure() }}
if: ${{ (contains(github.ref,'refs/tags/beta')||(inputs.flag&&contains(needs.Create-Tag.outputs.tag,'beta'))||(inputs.flag&&contains(needs.Create-Tag.outputs.tag,'v')))&&!failure() }}
env:
Artifacts_Path: .artifacts
steps:
Expand Down Expand Up @@ -308,12 +308,14 @@ jobs:
packages-keep: 9

- name: Download .msixbundle from artifacts
if: ${{ !contains(needs.Create-Tag.outputs.tag,'v') }}
uses: actions/download-artifact@v3
with:
name: .msixbundle
path: "${{ github.workspace }}/${{env.Artifacts_Path}}"

- name: Create Pre-Release
if: ${{ !contains(needs.Create-Tag.outputs.tag,'v') }}
uses: ncipollo/release-action@v1.12.0
with:
artifacts: "${{ github.workspace }}/${{env.Artifacts_Path}}/*.msixbundle"
Expand Down

0 comments on commit 003bcaa

Please sign in to comment.