2.0.1 changelog #4
Workflow file for this run
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: Make Release | |
on: | |
push: | |
tags: '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Source Code Download | |
run: git clone --branch stable --single-branch --recurse-submodules https://github.com/DHD2280/Oxygen-Customizer.git . | |
- name: JDK 21 Setup | |
uses: actions/[email protected] | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Shell Scripts Permissions | |
run: chmod +x .github/*.sh | |
- name: Version Bump | |
run: .github/bumpVersion.sh | |
- name: Gradlew Permissions | |
run: chmod +x gradlew | |
- name: Signature files preparation | |
run: | | |
if [ ! -z "${{ secrets.KEYSTORE }}" ]; then | |
echo storePassword='${{ secrets.KEYSTORE_PASSWORD }}' >> keystore.properties | |
echo keyAlias='${{ secrets.KEY_ALIAS }}' >> keystore.properties | |
echo keyPassword='${{ secrets.KEY_PASSWORD }}' >> keystore.properties | |
echo storeFile='${{ github.workspace }}/key.jks' >> keystore.properties | |
echo ${{ secrets.KEYSTORE }} | base64 --decode > ${{ github.workspace }}/key.jks | |
fi | |
- name: Gradle Build | |
run: ./gradlew assembleRelease | |
- name: Upload Xposed Artifact to Actions | |
uses: actions/[email protected] | |
with: | |
name: OxygenCustomizer | |
path: app/build/outputs/apk/release/*.apk | |
- name: Oxygen Customizer Binary Release | |
uses: ncipollo/[email protected] | |
with: | |
tag: ${{ github.ref }} | |
name: ${{ github.ref_name }} | |
prerelease: false | |
draft: false | |
bodyFile: 'releaseNotes.md' | |
artifacts: 'app/build/outputs/apk/release/*.apk' | |
- name: Version Bump Commit | |
uses: github-actions-x/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
push-branch: 'stable' | |
commit-message: 'Version update: Release' | |
force-add: 'true' | |
files: app/build.gradle.kts StableChangelog.md latestStable.json | |
name: GitHub | |
email: [email protected] | |
- name: Telegram Channel Post | |
run: | | |
curl -X POST \ | |
-H 'Content-Type: application/json' \ | |
-d '{"chat_id": ${{ secrets.OC_CHANNEL }}, "text": "'"$(cat telegram.msg)"'", "parse_mode": "Markdown", "reply_markup": {"inline_keyboard": [[{"text":"Download", "url": "https://www.github.com/DHD2280/Oxygen-Customizer/releases/download/"${{ github.ref }}"/OxygenCustomizer.apk"}]]}' https://api.telegram.org/bot${{ secrets.TELEGRAM_TK }}/sendMessage | |
- name: Telegram Channel Post | |
run: | | |
curl -X POST \ | |
-H 'Content-Type: application/json' \ | |
-d '{"chat_id": ${{ secrets.OC_CHANNEL2 }}, "text": "'"$(cat telegram.msg)"'", "parse_mode": "Markdown", "reply_markup": {"inline_keyboard": [[{"text":"Download", "url": "https://www.github.com/DHD2280/Oxygen-Customizer/releases/download/"${{ github.ref }}"/OxygenCustomizer.apk"}]]}' https://api.telegram.org/bot${{ secrets.TELEGRAM_TK }}/sendMessage |