Skip to content

ci: fix version thing #22

ci: fix version thing

ci: fix version thing #22

Workflow file for this run

name: "pre-release"
on:
push:
branches:
- "master"
- "standalone"
workflow_dispatch:
jobs:
pre-release:
name: "Release"
runs-on: ubuntu-latest
steps:
- name: "Checkout Master Branch"
uses: actions/checkout@v3
with:
ref: 'master'
- name: "Extract Master Version Code"
run: |
VERSION_CODE=$(grep 'version=' module.prop | cut -d'=' -f2)
echo "MASTER_VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
- name: "Build Master"
run: |
sh ./build.sh github
mv *.zip "eMagisk-full-${{ env.MASTER_VERSION_CODE }}.zip"
- name: "Checkout Standalone Branch"
uses: actions/checkout@v3
with:
ref: 'standalone'
- name: "Extract Standalone Version Code"
run: |
VERSION_CODE=$(grep 'version=' module.prop | cut -d'=' -f2)
echo "STANDALONE_VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
- name: "Build Standalone"
run: |
sh ./build.sh github
mv *.zip "eMagisk-noatlas-${{ env.STANDALONE_VERSION_CODE }}.zip"
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Latest Release v${{ env.MASTER_VERSION_CODE }} & v${{ env.STANDALONE_VERSION_CODE }}"
files: |
*.zip