Giter VIP home page Giter VIP logo

ios-bump-version's Introduction

iOS-Bump-Version

This action increment build and version number using agvtool.

Usage

- uses: yanamura/ios-bump-version@v1
  with:
    # version number
    # ex. 3.2.0
    # If version is not set, the version does not be changed.
    version: ''

    # build number
    # ex. 10
    # If build-number is not set, auto-increment build number.
    build-number: ''

Note: Set Current Project Version and Versioning System to Apple Generic on your Xcode Project Setting.

Senario

specify version by using Manual Workflow

on:
  workflow_dispatch:
    inputs:
      version:
        description: new app version x.x.x.

jobs:
  versionup:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v2
    - uses: yanamura/ios-bump-version@v1
      with:
        version: ${{ github.event.inputs.version }}
- name: update
  run: |
    git add .
    git commit -m "bump version"
    git push origin HEAD

auto increment build number

- uses: actions/checkout@v2
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
- uses: yanamura/ios-bump-version@v1
  with:
    version: 1.1.0
- name: update
  run: |
    git add .
    git commit -m "bump version"
    git push origin HEAD

specify build number using GITHUB_RUN_NUMBER and project path

- uses: actions/checkout@v2
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
- uses: yanamura/ios-bump-version@v1
  with:
    version: 1.1.0
    build-number: ${{github.run_number}}
    project-path: ios #Example for React Native project
- name: update
  run: |
    git add .
    git commit -m "bump version"
    git push origin HEAD

specify version from file

- uses: actions/checkout@v2
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
- uses: yanamura/ios-bump-version@v1
  with:
    version-path: version.file
- name: update
  run: |
    git add .
    git commit -m "bump version"
    git push origin HEAD

ios-bump-version's People

Contributors

yanamura avatar sirily11 avatar dependabot[bot] avatar reggionick avatar lolevsky avatar fortkle avatar whck6 avatar tatsuz0u avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.