From f8194315818dc3540e15dcfc56a4e67b154db5db Mon Sep 17 00:00:00 2001 From: iVAN <88724353+ivan-hc@users.noreply.github.com> Date: Mon, 8 Jan 2024 04:09:09 +0100 Subject: [PATCH] Create JuNest-updater.yml --- .github/workflows/JuNest-updater.yml | 53 ++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/JuNest-updater.yml diff --git a/.github/workflows/JuNest-updater.yml b/.github/workflows/JuNest-updater.yml new file mode 100644 index 0000000..ac891a3 --- /dev/null +++ b/.github/workflows/JuNest-updater.yml @@ -0,0 +1,53 @@ +name: JuNest Builder +concurrency: + group: build-${{ github.ref }} + cancel-in-progress: true + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: build + if: always() + run: | + sudo apt update + wget https://raw.githubusercontent.com/ivan-hc/junest/main/junest-updater.sh + chmod a+x ./junest-updater.sh + ./junest-updater.sh + mkdir dist + mv *tar.gz dist/ + - uses: gautamkrishnar/keepalive-workflow@v1 + with: + gh_token: ${{ secrets.GH_TOKEN }} + - name: Upload artifact + uses: actions/upload-artifact@v1.0.0 + with: + name: junest-x86_64.tar.gz + path: 'dist' + + release: + needs: [build] + permissions: write-all + runs-on: ubuntu-latest + + steps: + - uses: actions/download-artifact@v1 + with: + name: junest-x86_64.tar.gz + + - name: release + uses: marvinpinto/action-automatic-releases@latest + with: + title: Continuous build + automatic_release_tag: test + prerelease: true + draft: false + files: | + junest-x86_64.tar.gz + repo_token: ${{ secrets.GITHUB_TOKEN }} +