Create release-nr-mod.yml

This commit is contained in:
Henrik
2025-01-31 22:08:34 +01:00
committed by GitHub
parent a7530c8aa5
commit bd1bd5d909

35
.github/workflows/release-nr-mod.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: Release Magisk module NR
on:
workflow_dispatch:
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Get date
id: date
run: echo "VERSION=v$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Zip folder
working-directory: ./
run: |
cd p9_nr_platform_mod
zip -r ../p9_nr_platform_mod.zip ./*
cd ..
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
name: Release ${{ env.VERSION }}
draft: false
prerelease: false
files: |
p9_nr_platform_mod.zip