-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (26 loc) · 1.16 KB
/
build-custom-codepush.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Lag CodePush 🚀
on:
workflow_dispatch:
inputs:
targetVersion:
description: 'Versjonsnavn fra AppCenter, feks: 1.0.0-<branchname>'
required: true
default: '1.0.0-appcenter-script'
jobs:
build_codepush:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- run: |
echo "Target version: ${{ github.event.inputs.targetVersion }}"
- name: NPM install CI
run: npm ci
- id: timestamp
run: echo "::set-output name=timestamp::$(date +%d%m%H%M)"
- name: Bygg CodePush
run: |
npx appcenter login --token ${{ secrets.APPCENTER_API_TOKEN }}
npx appcenter codepush release-react -a leif.erik.bjorkli-BEKK.no/RNSkolenApp -d Staging -t ${{ github.event.inputs.targetVersion }} --description "${{ github.event.inputs.targetVersion }}-${{ steps.timestamp.outputs.timestamp }}"
npx appcenter codepush release-react -a leif.erik.bjorkli-BEKK.no/RNSkolenApp-Android -d Staging -t ${{ github.event.inputs.targetVersion }} --description "${{ github.event.inputs.targetVersion }}-${{ steps.timestamp.outputs.timestamp }}"