From 0c1bf3a89b093f7742ca0a7f7cbf9e092844f853 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Thu, 13 Jun 2024 19:37:42 +0200 Subject: [PATCH 1/3] feat(ci): publish to winget on release --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3886cd6..b9a8ddc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -106,3 +106,19 @@ jobs: tag-name: ${{ env.TAG }} env: COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }} + + winget-update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Get the latest tag + run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV + + - uses: vedantmgoyal2009/winget-releaser@v2 + with: + identifier: GorillaDevs/Ferium + version: ${{ env.TAG }} + token: ${{ secrets.COMMITTER_TOKEN }} From f5761c6f86bd7ef536a89cb0e87713c31879136d Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 15 Jun 2024 18:10:05 +0200 Subject: [PATCH 2/3] chore: simplify --- .github/workflows/release.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b9a8ddc2..cc532998 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Publish and Release on: workflow_dispatch: push: - tags: "*" + tags: '*' jobs: crates-publish: @@ -79,14 +79,14 @@ jobs: uses: aksh1618/update-aur-package@v1 with: package_name: ferium-bin - commit_username: "Ilesh Thiada" + commit_username: 'Ilesh Thiada' commit_email: ileshkt@gmail.com ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} - name: Update gui AUR package uses: aksh1618/update-aur-package@v1 with: package_name: ferium-gui-bin - commit_username: "Ilesh Thiada" + commit_username: 'Ilesh Thiada' commit_email: ileshkt@gmail.com ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} @@ -114,11 +114,7 @@ jobs: with: fetch-depth: 0 - - name: Get the latest tag - run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV - - - uses: vedantmgoyal2009/winget-releaser@v2 + - uses: vedantmgoyal9/winget-releaser@v2 with: identifier: GorillaDevs/Ferium - version: ${{ env.TAG }} token: ${{ secrets.COMMITTER_TOKEN }} From 53cc3be70ecf907a9429925103d7faf90cb8eeae Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 15 Jun 2024 18:12:57 +0200 Subject: [PATCH 3/3] chore: revert unintentional diff --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cc532998..cb27cdad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Publish and Release on: workflow_dispatch: push: - tags: '*' + tags: "*" jobs: crates-publish: @@ -79,14 +79,14 @@ jobs: uses: aksh1618/update-aur-package@v1 with: package_name: ferium-bin - commit_username: 'Ilesh Thiada' + commit_username: "Ilesh Thiada" commit_email: ileshkt@gmail.com ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} - name: Update gui AUR package uses: aksh1618/update-aur-package@v1 with: package_name: ferium-gui-bin - commit_username: 'Ilesh Thiada' + commit_username: "Ilesh Thiada" commit_email: ileshkt@gmail.com ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}