[603] fix release workflow #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Artifact Sharing | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
publish-ui-dist: | |
name: Publish UI Distribution | |
runs-on: 'windows-latest' | |
outputs: | |
artifact_name: ${{ steps.win-ui-create-artifact.outputs.artifact_name }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Publish UI Distribution | |
uses: ./.github/actions/test-action | |
id: win-ui-create-artifact | |
create-gh-release: | |
runs-on: ubuntu-latest | |
needs: [publish-ui-dist] | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: ${{ needs.publish-ui-dist.outputs.artifact_name }} | |
path: ${{ github.workspace }}/downloaded | |
- run: ls ${{ github.workspace }}/downloaded | |
shell: pwsh | |
- run: mkdir ${{ github.workspace }}/dist | |
shell: pwsh | |
- name: Create Zip for Win UI Release Artifact | |
uses: vimtor/[email protected] | |
with: | |
files: /downloaded #relative to gh workspace | |
dest: ui_win.zip | |
- run: ls ${{ github.workspace }}/downloaded | |
shell: pwsh | |
- run: ls ${{ github.workspace }} | |
shell: pwsh | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: my_zipped_artifact | |
path: ${{ github.workspace }}/downloaded |