Skip to content

Commit

Permalink
feat: add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokang00010 committed Apr 25, 2024
1 parent 31999c6 commit 5c127f0
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

jobs:
linux:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.20.2]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- run: |
npm install
- name: Prebuils
run: |
npx expo prebuild
- name: Build
- run: |
cd android; ./gradlew assembleRelease
- name: upload artifacts
uses: actions/upload-artifact@v2
with:
name: android-build
path: android/app/build/outputs

0 comments on commit 5c127f0

Please sign in to comment.