Skip to content

Commit

Permalink
Create deploy-ota-on-release-merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisWiles committed Aug 27, 2024
1 parent cc8a68d commit c5ced78
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy-ota-on-release-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: OTA Release Production

on:
push:
branches:
- main

jobs:
ota_release:
name: EAS Update
if: |
${{ startsWith(github.event.head_commit.message, 'release(OTA): v') }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Get Version from package.json
id: get_version
run: |
VERSION=$(node -p -e "require('./package.json').version")
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Create Git Tag
run: |
git tag v${{ steps.get_version.outputs.version }}
git push origin v${{ steps.get_version.outputs.version }}
- name: Install GitHub CLI
run: sudo apt-get install -y gh

- name: Create GitHub Release with Auto-Generated Notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create v${{ steps.get_version.outputs.version }} --generate-notes

0 comments on commit c5ced78

Please sign in to comment.