Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriaCarrera committed May 27, 2024
1 parent 58ddc51 commit e79e593
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
workflow_dispatch:
inputs:
tag:
description: The tag of the release
required: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: πŸ— Setup repo
uses: actions/checkout@v3
- name: πŸ— Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: πŸ— Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: πŸ“¦ Install dependencies
run: yarn install
- name: πŸ— Set build number
run: sed -i -e "s/__BUILD_NUMBER__/${{ github.run_number }}/" eas.json
- name: πŸš€ Build app
run: eas build --non-interactive --no-wait --platform=android --profile=productionRelease
- name: Generate Github release
uses: softprops/action-gh-release@v1
with:
name: ${{ github.event.inputs.tag }}
tag_name: ${{ github.event.inputs.tag }}
target_commitish: main
10 changes: 10 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
"CONFIG_ENV": "production"
},
"android": {}
},
"productionRelease": {
"node": "18.15.0",
"env": {
"BUILD_NUMBER": "__BUILD_NUMBER__",
"CONFIG_ENV": "production"
},
"android": {
"buildType": "apk"
}
}
},
"submit": {
Expand Down

0 comments on commit e79e593

Please sign in to comment.