From fc314ad84ec063fa566295fce6a43323baff304a Mon Sep 17 00:00:00 2001 From: Vandita2020 Date: Mon, 19 Aug 2024 10:17:12 -0700 Subject: [PATCH 1/2] Correcting changes in Git Release --- .github/workflows/create_update_release.yaml | 26 ++++++++------------ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/create_update_release.yaml b/.github/workflows/create_update_release.yaml index ad8153047..23ec7e5c7 100644 --- a/.github/workflows/create_update_release.yaml +++ b/.github/workflows/create_update_release.yaml @@ -4,6 +4,7 @@ on: push: branches: - main + jobs: get-release: runs-on: ubuntu-latest @@ -40,7 +41,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create v1.0.0 --generate-notes --prerelease=false + gh release create v1.0.0 --notes "Initial release" --prerelease=false echo "Release created" - name: Zip files of folders @@ -61,14 +62,14 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | for file in temp/*.zip; do - gh release upload v1.0.0 "$file" --clobber - echo "Uploaded $file, waiting to avoid rate limits..." - sleep 3 + if [ -f "$file" ]; then + gh release upload v1.0.0 "$file" --clobber + echo "Uploaded $file, waiting to avoid rate limits..." + sleep 3 + else + echo "File $file not found" + fi done - - - name: clean up - run: | - rm -r temp update-release: needs: get-release @@ -132,11 +133,4 @@ jobs: else echo "Archive $archive not found" fi - done < changed_folders.txt - - - name: Clean up - if: (needs.get-release.outputs.latest_release != '') && ( steps. ) - run: | - rm -r temp_archives - rm changed_folders.txt - rm changed_files.txt \ No newline at end of file + done < changed_folders.txt \ No newline at end of file From ef834d71ffccd3dd16dbd36bb630a9fb88caf7e0 Mon Sep 17 00:00:00 2001 From: Vandita2020 Date: Mon, 19 Aug 2024 11:20:10 -0700 Subject: [PATCH 2/2] Correcting changes in Git Release --- .github/workflows/create_update_release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_update_release.yaml b/.github/workflows/create_update_release.yaml index 23ec7e5c7..eddb9154f 100644 --- a/.github/workflows/create_update_release.yaml +++ b/.github/workflows/create_update_release.yaml @@ -41,7 +41,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create v1.0.0 --notes "Initial release" --prerelease=false + gh release create v1.0.0 --notes "Initial release v1.0.0" --prerelease=false echo "Release created" - name: Zip files of folders