Skip to content

Commit

Permalink
Create static release
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoudabdalkarim committed Nov 17, 2024
1 parent 376a0a4 commit ca737f1
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/generate-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ca737f1

Please sign in to comment.