Skip to content

Update action

Update action #7

Workflow file for this run

name: "Tag & Deploy Action"
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
name: Test action
steps:
- uses: actions/checkout@v1
name: Checkout code
- name: get latest build tools version
id: sdk
run: |
echo version=$(ls $ANDROID_HOME/build-tools | tail -n 1) >> $GITHUB_OUTPUT
- name: set up environment
run: npm i --include=dev
- name: Run tests
run: npm run test
- uses: pCYSl5EDgo/[email protected]
name: Cat for GitHub Actions
id: get_key
with:
path: __tests__/test_key_b64.txt
- uses: ./
name: Sign APK
env:
BUILD_TOOLS_VERSION: ${{steps.sdk.outputs.version}}
with:
releaseDirectory: __tests__/apk
signingKeyBase64: ${{ steps.get_key.outputs.text }}
alias: test_key
keyStorePassword: android
keyPassword: android
- uses: ./
name: Sign AAB
env:
BUILD_TOOLS_VERSION: ${{steps.sdk.outputs.version}}
with:
releaseDirectory: __tests__/aab
signingKeyBase64: ${{ steps.get_key.outputs.text }}
alias: test_key
keyStorePassword: android
keyPassword: android
release:
needs: test
runs-on: ubuntu-latest
name: Update action
steps:
- uses: actions/checkout@v1
name: Checkout code
- name: get latest tag
id: tag
run: echo tag=$(git describe --tags --abbrev=0) >> $GITHUB_OUTPUT
- name: Update latest Tag
uses: hole19/git-tag-action@master
env:
TAG: ${{steps.tag.outputs.tag}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}