From 7f74cdb6960d8a89f88b7484ca3b10dcb39338df Mon Sep 17 00:00:00 2001 From: Remisa Yousefvand Date: Sat, 30 Nov 2024 13:19:37 +0330 Subject: [PATCH] release #86 --- .github/workflows/cmake-multi-platform.yml | 36 ++++++++-------------- 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 8b1fa05..54eef34 100755 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -119,8 +119,11 @@ jobs: - name: Package Notepad-- (Windows) if: matrix.os == 'windows-latest' run: | - mkdir "${{ github.workspace }}\\output" - Compress-Archive -Path "${{ github.workspace }}\\build\\*" -DestinationPath "${{ github.workspace }}\\output\\Notepad--_windows.zip" + BUILD_DIR="${{ github.workspace }}\\build" + OUTPUT_DIR="${{ github.workspace }}\\output" + mkdir $OUTPUT_DIR + Compress-Archive -Path "$BUILD_DIR\\*" -DestinationPath "$OUTPUT_DIR\\Notepad--_windows.zip" + shell: cmd - name: Upload Windows Artifact if: matrix.os == 'windows-latest' uses: actions/upload-artifact@v3 @@ -132,30 +135,15 @@ jobs: runs-on: ubuntu-latest needs: build-and-release steps: - - name: Download Ubuntu Artifact - uses: actions/download-artifact@v3 - with: - name: Notepad--_ubuntu - path: artifacts - - - name: Download macOS Artifact - uses: actions/download-artifact@v3 - with: - name: Notepad--_macos - path: artifacts - - - name: Download Windows Artifact - uses: actions/download-artifact@v3 - with: - name: Notepad--_windows - path: artifacts + - name: Checkout code + uses: actions/checkout@v4 - name: Generate Tag Name id: tag_name run: | TIMESTAMP=$(date +%Y%m%d%H%M%S) echo "RELEASE_TAG=release-$TIMESTAMP" >> $GITHUB_ENV - + echo "::set-output name=tag_name::release-$TIMESTAMP" - name: Create GitHub Release id: create_release uses: actions/create-release@v1 @@ -163,7 +151,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ env.RELEASE_TAG }} - release_name: Notepad-- Release + release_name: "Notepad-- Release" draft: false prerelease: false @@ -171,7 +159,7 @@ jobs: uses: actions/upload-release-asset@v1 with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: artifacts/Notepad--_ubuntu.tar.gz + asset_path: "${{ github.workspace }}/output/Notepad--_ubuntu.tar.gz" asset_name: Notepad--_ubuntu.tar.gz asset_content_type: application/gzip @@ -179,7 +167,7 @@ jobs: uses: actions/upload-release-asset@v1 with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: artifacts/Notepad--_macos.zip + asset_path: "${{ github.workspace }}/output/Notepad--_macos.zip" asset_name: Notepad--_macos.zip asset_content_type: application/zip @@ -187,6 +175,6 @@ jobs: uses: actions/upload-release-asset@v1 with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: artifacts/Notepad--_windows.zip + asset_path: "${{ github.workspace }}/output/Notepad--_windows.zip" asset_name: Notepad--_windows.zip asset_content_type: application/zip