-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.24 KB
/
create-release.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: "Create Release"
on:
workflow_dispatch:
pull_request:
branches:
- master
types:
- opened
paths:
- src/**
- android/**
- ios/**
jobs:
upgrade-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Config
run: |
git config --local user.email ${{ secrets.USER_EMAIL }}
git config --local user.name ${{ secrets.USER_NAME }}
- name: "Install dependecies"
run: yarn install
- name: Update app version
run: |
git fetch
git checkout dev --force
yarn update-version
- name: Push versions
run: |
git commit -m "Update app version" -a
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ secrets.USER_NAME }}
create-draft-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: New release draft
release_name: New release draft
draft: true
prerelease: false