From cb18fc3617ebc36bca87d5d3670793013190deda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?mauro=20=F0=9F=A4=99?= <91018726+mauro-balades@users.noreply.github.com> Date: Sun, 1 Sep 2024 12:06:23 +0000 Subject: [PATCH] chore: Update Zen Browser desktop file with new launch script and icon paths --- .github/workflows/publish-tar.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-tar.yml b/.github/workflows/publish-tar.yml index d52c6c9..f62e17b 100644 --- a/.github/workflows/publish-tar.yml +++ b/.github/workflows/publish-tar.yml @@ -6,12 +6,16 @@ on: description: 'Version to publish' required: true default: 'latest' + push: + branches: + - main jobs: publish-tar: permissions: write-all name: Publish tar as release runs-on: ubuntu-latest + if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && startsWith(github.event.commits.message, '[release]:')) steps: - name: Checkout @@ -20,6 +24,10 @@ jobs: - name: Archive run: tar -cf archive.tar ./* + - name: Output version from file to variable + id: version + run: echo "::set-output name=version::$(cat version)" + - name: Create Release id: create_release uses: softprops/action-gh-release@v1 @@ -27,8 +35,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: files: archive.tar - tag_name: ${{ github.event.inputs.version }} - name: Release for Zen - ${{ github.event.inputs.version }} + tag_name: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }} + name: Release for Zen - ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }} body: | - ### Release ${{ github.event.inputs.version }} + ### Release ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }} - sha: ${{ github.sha }}