From 2a9d4c1039207096f03bd8cb33ff84b59ab66b74 Mon Sep 17 00:00:00 2001 From: Bensingh Pancras Date: Mon, 20 May 2024 12:44:09 +0530 Subject: [PATCH 1/4] Updated upload-artifact.yml, moved the release at the end. --- .github/workflows/upload-artifact.yml | 49 ++++++++++++++++----------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/.github/workflows/upload-artifact.yml b/.github/workflows/upload-artifact.yml index d0e5d559d..323180670 100644 --- a/.github/workflows/upload-artifact.yml +++ b/.github/workflows/upload-artifact.yml @@ -72,16 +72,6 @@ jobs: # name: helpsearch-v3-files # path: helpfiles/pointersHTML/helpsearch-v3/ - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false # We are going to start a display server using XVFB to ensure that if the toolbox build # triggers something that needs a display we have one. This is a done prophylacticly in @@ -119,17 +109,36 @@ jobs: uses: matlab-actions/run-build@v1 with: tasks: toolbox - - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create release + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./toolbox/bin/FSDA.mltbx - asset_name: FSDA.mltbx - asset_content_type: application/gzip + files: ./toolbox/bin/FSDA.mltbx + fail_on_unmatched_files: true + generate_release_notes: true + draft: true + + # - name: Create Release + # id: create_release + # uses: actions/create-release@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # with: + # tag_name: ${{ github.ref }} + # release_name: Release ${{ github.ref }} + # draft: true + # prerelease: false + + # - name: Upload Release Asset + # id: upload-release-asset + # uses: actions/upload-release-asset@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # with: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: ./toolbox/bin/FSDA.mltbx + # asset_name: FSDA.mltbx + # asset_content_type: application/gzip build-docker-container: needs: archive-build-artifacts From e2eda493a3d5d523e271a18fe45241f4ca342f24 Mon Sep 17 00:00:00 2001 From: Bensingh Pancras Date: Mon, 20 May 2024 13:08:37 +0530 Subject: [PATCH 2/4] Minor update. --- .github/workflows/upload-artifact.yml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.github/workflows/upload-artifact.yml b/.github/workflows/upload-artifact.yml index 323180670..55bfa9abc 100644 --- a/.github/workflows/upload-artifact.yml +++ b/.github/workflows/upload-artifact.yml @@ -117,28 +117,6 @@ jobs: fail_on_unmatched_files: true generate_release_notes: true draft: true - - # - name: Create Release - # id: create_release - # uses: actions/create-release@v1 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # tag_name: ${{ github.ref }} - # release_name: Release ${{ github.ref }} - # draft: true - # prerelease: false - - # - name: Upload Release Asset - # id: upload-release-asset - # uses: actions/upload-release-asset@v1 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # upload_url: ${{ steps.create_release.outputs.upload_url }} - # asset_path: ./toolbox/bin/FSDA.mltbx - # asset_name: FSDA.mltbx - # asset_content_type: application/gzip build-docker-container: needs: archive-build-artifacts From d63f87af112b6110512870e26f19dcfac9bfe64f Mon Sep 17 00:00:00 2001 From: Bensingh Pancras Date: Mon, 20 May 2024 15:44:19 +0530 Subject: [PATCH 3/4] Updated the version of MATLAB to 2024a --- .github/workflows/upload-artifact.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/upload-artifact.yml b/.github/workflows/upload-artifact.yml index 55bfa9abc..c5d59637f 100644 --- a/.github/workflows/upload-artifact.yml +++ b/.github/workflows/upload-artifact.yml @@ -14,7 +14,7 @@ on: env: # Define a specific version of MATLAB to release the toolbox - MATLAB_RELEASE: R2023a + MATLAB_RELEASE: R2024a # We also need a specific version to build the older v3 doc search MATLAB_RELEASE_DOC_V3: R2021b From 29074ef60f9778613a315c70a742243782dfd044 Mon Sep 17 00:00:00 2001 From: Bensingh Pancras Date: Tue, 21 May 2024 10:35:01 +0530 Subject: [PATCH 4/4] Set draft to be false --- .github/workflows/upload-artifact.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/upload-artifact.yml b/.github/workflows/upload-artifact.yml index c5d59637f..35d16361c 100644 --- a/.github/workflows/upload-artifact.yml +++ b/.github/workflows/upload-artifact.yml @@ -116,7 +116,7 @@ jobs: files: ./toolbox/bin/FSDA.mltbx fail_on_unmatched_files: true generate_release_notes: true - draft: true + draft: false build-docker-container: needs: archive-build-artifacts