Update package libs #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update package libs | |
on: | |
workflow_dispatch: | |
inputs: | |
libraryVersion: | |
description: 'Library Version' | |
required: true | |
default: '' | |
packageVersion: | |
description: 'Package Version' | |
required: true | |
default: '' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '^1.15.0' | |
- name: Update Library Version | |
run: | | |
sed -i '/libVersion :=/!b;c \ \ \ \ \ \ \libVersion := \"v${{ github.event.inputs.libraryVersion }}";' download_libs/download_libs.go | |
- name: Download Native Libs | |
run: go run download_libs/download_libs.go | |
- name: Commit files | |
run: | | |
git add ./libs | |
git add ./download_libs/download_libs.go | |
git config user.name github-actions | |
git config user.email [email protected] | |
git commit -m "updated native libs" -a | exit 0 | |
git tag v${{ github.event.inputs.packageVersion }} | |
git push & git push --tags |