Skip to content

fix: Add title to the README.md #63

fix: Add title to the README.md

fix: Add title to the README.md #63

name: Build alpha release
on:
push:
branches: ['main']
jobs:
build_android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Git Sumbodule Update
run: |
git submodule update --init
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: '17'
- name: Decode Keystore File
uses: timheuer/base64-to-file@v1
id: android_keystore
with:
fileName: android_keystore.keystore
encodedString: ${{ secrets.ANDROID_KEYSTORE_FILE }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- uses: maierj/[email protected]
env:
KEYSTORE_PATH: ${{ steps.android_keystore.outputs.filePath }}
KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }}
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
PUBLIC_BACKEND_URL: ${{ vars.PUBLIC_BACKEND_URL }}
with:
lane: alpha
- run: mv release.apk verifier.apk
- name: upload binary artifacts
uses: actions/upload-artifact@v4
with:
name: verifier
path: |
verifier.apk
semantic-release:
permissions:
contents: write
needs: build_android
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
outputs:
release: ${{ steps.tag_release.outputs.release }}
version: ${{ steps.tag_release.outputs.version }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js 18
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
- name: Install deps
run: |
pnpm i
- name: Tag release
id: tag_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx semantic-release >semantic-release.log
cat semantic-release.log
if [[ `git tag --points-at HEAD` == "" ]]; then
echo "release=False" >> $GITHUB_OUTPUT
else
echo "release=True" >> $GITHUB_OUTPUT
awk '/Published release/ { printf("version=v%s\n",$8) }' semantic-release.log >> $GITHUB_OUTPUT
fi
echo "Result"
cat $GITHUB_OUTPUT
draft-release:
permissions:
contents: write
needs: semantic-release
runs-on: ubuntu-latest
if: ${{ needs.semantic-release.outputs.release == 'True' }}
steps:
- name: download binary artifacts
uses: actions/download-artifact@v4
with:
path: |
release
- name: relase all binary artifacts
uses: softprops/action-gh-release@v1
with:
files: |
release/verifier/*
draft: false
prerelease: false
fail_on_unmatched_files: true
generate_release_notes: true
tag_name: ${{ needs.semantic-release.outputs.version }}