-
-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (36 loc) · 1.25 KB
/
create&release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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