Skip to content

Commit

Permalink
added create&release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
symbuzzer committed May 21, 2023
1 parent 31cf6ea commit 000b8b5
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
v1.0.0
- Initial release
4 changes: 4 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Notes:
- Dont forget to give RW permissions to Actions from Settings>Actions
- Make sure repo has "CHANGELOG.md" not "changelog.md"
- Make sure module has a proper "update.json" file
37 changes: 37 additions & 0 deletions .github/workflows/create&release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# create&release workflow for Magisk Module Git v1.0.0 by Ali BEYAZ

name: create&release
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: symbuzzer/fork-checkout-repo@main
with:
persist-credentials: false
fetch-depth: 0
- name: Get module version
id: version
uses: symbuzzer/fork-github-action-json-property@master
with:
path: 'update.json'
prop_path: 'version'
- name: Creating module zip
run: |
sudo zip -r ${{ github.event.repository.name }}.zip *
- name: Create and upload release asset
uses: symbuzzer/fork-github-release@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{steps.version.outputs.prop}}
name: ${{steps.version.outputs.prop}}
body: Please check [changelog](https://github.com/${{ github.repository }}/blob/${{ github.ref_name }}/CHANGELOG.md) for changes
files: ${{ github.event.repository.name }}.zip
gzip: false
draft: false
prerelease: false
allow_override: true
- name: Cleanup module zip
run: |
rm ${{ github.event.repository.name }}.zip

0 comments on commit 000b8b5

Please sign in to comment.