From f99cb177ad243d5322c77b93269114d088e3f04d Mon Sep 17 00:00:00 2001 From: Brandon Fergerson Date: Mon, 14 Oct 2024 05:51:36 -0500 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac49c1c..d87caca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,18 +1,13 @@ -name: Download Release +name: Download and Republish Release -# Controls when the workflow will run on: workflow_dispatch: jobs: - get_asset: - runs-on: ubuntu-latest - steps: - - name: List Releases run: gh release list --repo voqal/browser-dev env: @@ -30,8 +25,18 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.PRIVATE_REPO_TOKEN }} - - name: See what we downloaded + - name: List Downloaded Files run: ls - - name: Inspect content - run: cat hello.txt + release: + runs-on: ubuntu-latest + needs: get_asset + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - name: Upload Downloaded Assets as New Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create "${{ github.ref_name }}" **/*.dmg **/*.msi **/*.deb -t "${{ github.ref_name }}" --draft --generate-notes