From edf54a2ca39d010a12ea337d365dd5248bad18d4 Mon Sep 17 00:00:00 2001 From: Julian Lemmerich Date: Thu, 16 Nov 2023 17:50:26 +0100 Subject: [PATCH] add release workflow --- .github/workflows/package.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index acecde0..91b0d47 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -9,9 +9,11 @@ on: jobs: package: runs-on: ubuntu-latest + outputs: + packagename: ${{ steps.package.outputs.file_name }} steps: - name: Checkout Code - uses: actions/checkout + uses: actions/checkout@v3 - name: Create debpkg structure run: | mkdir -p .debpkg/usr/bin/ @@ -34,5 +36,16 @@ jobs: name: ${{ steps.package.outputs.file_name }} path: ${{ steps.package.outputs.file_name }} - name: ${{steps.package.outputs.file_name}} - path: ${{steps.package.outputs.file_name}} + release: + needs: package + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v3 + id: download + with: + name: ${{ needs.package.outputs.packagename }} + - uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: "${{ secrets.RELEASE_PAT }}" + prerelease: false + files: ${{ needs.package.outputs.packagename }}