Skip to content

Commit

Permalink
Add GitHub Actions auto-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingadonis committed May 4, 2023
1 parent aac3584 commit 3d86435
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Auto release Revanced

on:
push:
branches: [main]

jobs:
auto-release-revanced:
name: Auto release Revanced
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install -r requirements.txt

- name: Auto build Revanced
run: python auto-build.py

- name: Set current date as env variable
run: echo "date_now=$(date +'%Y-%m-%d')" >> $GITHUB_ENV

- name: Auto release Revanced
uses: softprops/[email protected]
with:
prerelease: false
name: ${{ env.date_now }}
tag_name: ${{ env.date_now }}
generate_release_notes: true
files: |
build/*.apk
revanced-tools/microg.apk
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Revanced Auto Build
[![Auto release Revanced](https://github.com/hardingadonis/revanced-auto-build/actions/workflows/auto-release.yml/badge.svg)](https://github.com/hardingadonis/revanced-auto-build/actions/workflows/auto-release.yml)
[![Repository size](https://img.shields.io/github/repo-size/hardingadonis/revanced-auto-build)](https://github.com/hardingadonis/revanced-auto-build)

> Auto build *Revanced (non-root)* for individual with GitHub Actions 😎😎
## Requirements
Expand Down

0 comments on commit 3d86435

Please sign in to comment.