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