Skip to content

Commit

Permalink
Fetch and download the bundle automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoudabdalkarim committed Nov 17, 2024
1 parent 1a12d88 commit 71716e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/generate-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
--bundle-output dist/index.android.bundle \
--assets-dest dist/
# Step 5: Upload the bundle to a static GitHub Release
- name: Create or Update GitHub Release
# Step 5: Upload or Replace the Release
- name: Create or Replace GitHub Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -47,3 +47,4 @@ jobs:
body: "This release contains the latest JavaScript bundle for React Native."
draft: false
prerelease: false
replace: true # Allow replacing the release if it already exists
2 changes: 1 addition & 1 deletion App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function App(): React.JSX.Element {
backgroundColor: isDarkMode ? Colors.black : Colors.white,
}}>
<Section title="Step One">
Try Release Branch <Text style={styles.highlight}>App.tsx</Text> to change this
Mahmoud First Release <Text style={styles.highlight}>App.tsx</Text> to change this
screen and then come back to see your edits.
</Section>
<Section title="See Your Changes">
Expand Down

0 comments on commit 71716e6

Please sign in to comment.