From a70782b7e40b6ee4f6a6c50c3c786e61de47d3e5 Mon Sep 17 00:00:00 2001 From: Der_Googler <54764558+DerGoogler@users.noreply.github.com> Date: Sat, 24 Feb 2024 17:09:36 +0100 Subject: [PATCH] Update release.yaml --- .github/workflows/release.yaml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 240a31d..d55eb73 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,27 +1,29 @@ -name: release +name: Build Magisk/KernelSU Module on: push: tags: [ v*.*.* ] jobs: - deploy: - name: Deploy + build: + name: Build Module runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Build + - name: Setup Apt Dependencies run: | - zip -r "code-server-release.zip" -x ".git" "README.md" ".github" . - - id: get_version - uses: battila7/get-version-action@v2 + sudo apt update -y && sudo apt upgrade -y + sudo apt install zip unzip -y + - name: Make + shell: bash + run: | + zip -r "module.zip" * -x ".git" -x "README.md" + - name: Publish uses: softprops/action-gh-release@v1 with: - files: 'code-server*' - draft: true - + files: 'module.zip' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}