Skip to content

Commit

Permalink
keep it simple stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
no-1-noob committed Jun 19, 2024
1 parent 47d8c47 commit 728a0d4
Showing 1 changed file with 12 additions and 57 deletions.
69 changes: 12 additions & 57 deletions .github/workflows/createbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ on:
jobs:
Build_1_29:
runs-on: windows-latest
outputs:
name: ${{ steps.outPutName.outputs.name }}
path: ${{ steps.outPutPath.outputs.path }}
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -62,18 +59,15 @@ jobs:
with:
name: ${{ env.filename }}
path: ${{ env.artifactpath }}
- id: outPutName
shell: bash
run: echo "name=${{ env.filename }}" >> $GITHUB_OUTPUT
- id: outPutPath
shell: bash
run: echo "path=${{ env.artifactpath }}" >> $GITHUB_OUTPUT
- name: Upload Release Asset
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release upload ${{ github.ref_name }} D:/a/VoiceCommander/VoiceCommander/VoiceCommander/bin/Release/zip/${{ env.filename }}.zip

Build_1_35:
runs-on: windows-latest
outputs:
name: ${{ steps.outPutName.outputs.name }}
path: ${{ steps.outPutPath.outputs.path }}
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -123,48 +117,9 @@ jobs:
with:
name: ${{ env.filename }}
path: ${{ env.artifactpath }}
- id: outPutName
shell: bash
run: echo "name=${{ env.filename }}" >> $GITHUB_OUTPUT
- id: outPutPath
shell: bash
run: echo "path=${{ env.artifactpath }}" >> $GITHUB_OUTPUT

Release:
name: Release
needs: [Build_1_29, Build_1_35]
runs-on: ubuntu-latest
env:
Build_1_29_ArtifactName: ${{ needs.Build_1_29.outputs.name }}
Build_1_35_ArtifactName: ${{ needs.Build_1_35.outputs.name }}
steps:
- run: echo ${{ needs.Build_1_29.outputs.name }}
- run: echo ${{ needs.Build_1_35.outputs.name }}
- uses: actions/download-artifact@master
with:
name: ${{ needs.Build_1_29.outputs.name }}
path: ${{ needs.Build_1_29.outputs.name }}
- uses: actions/download-artifact@master
with:
name: ${{ needs.Build_1_35.outputs.name }}
path: ${{ needs.Build_1_35.outputs.name }}
- id: print
run: ls -R
- uses: montudor/action-zip@v1
with:
args: zip -qq -r ${{ needs.Build_1_29.outputs.name }}.zip ${{ needs.Build_1_29.outputs.name }}/Plugins
- uses: montudor/action-zip@v1
with:
args: zip -qq -r ${{ needs.Build_1_35.outputs.name }}.zip ${{ needs.Build_1_35.outputs.name }}/Plugins
- name: Upload Release Asset 1_29
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release upload ${{ github.ref_name }} ${{ needs.Build_1_29.outputs.name }}.zip
- name: Upload Release Asset 1_35
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release upload ${{ github.ref_name }} ${{ needs.Build_1_35.outputs.name }}.zip
- name: Upload Release Asset
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release upload ${{ github.ref_name }} D:/a/VoiceCommander/VoiceCommander/VoiceCommander/bin/Release/zip/${{ env.filename }}.zip

0 comments on commit 728a0d4

Please sign in to comment.