From ca737f1dab565ed806bbcb470f5e6bd28b56a111 Mon Sep 17 00:00:00 2001 From: mahmoudabdalkarim Date: Sun, 17 Nov 2024 14:43:35 +0200 Subject: [PATCH] Create static release --- .github/workflows/generate-bundle.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/generate-bundle.yml b/.github/workflows/generate-bundle.yml index b38b3e3..82b5f9f 100644 --- a/.github/workflows/generate-bundle.yml +++ b/.github/workflows/generate-bundle.yml @@ -36,21 +36,14 @@ jobs: --bundle-output dist/index.android.bundle \ --assets-dest dist/ - # Step 5: Create a valid tag - - name: Create Tag - id: create_tag - run: | - TAG_NAME="release-$(date +'%Y%m%d-%H%M%S')" - echo "tag_name=${TAG_NAME}" >> $GITHUB_ENV - - # Step 6: Upload the bundle to GitHub Releases - - name: Create GitHub Release + # Step 5: Upload the bundle to a static GitHub Release + - name: Create or Update GitHub Release uses: ncipollo/release-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} artifacts: dist/index.android.bundle - tag: ${{ env.tag_name }} - releaseName: "JS Bundle - ${{ env.tag_name }}" - body: "This release contains the latest JavaScript bundle." + tag: static-release + releaseName: "Static JS Bundle Release" + body: "This release contains the latest JavaScript bundle for React Native." draft: false - prerelease: true + prerelease: false