Ver código fonte

release winget manually

Armin Schrenk 2 anos atrás
pai
commit
0725a63b09
2 arquivos alterados com 13 adições e 15 exclusões
  1. 12 9
      .github/workflows/win-exe.yml
  2. 1 6
      .github/workflows/winget.yml

+ 12 - 9
.github/workflows/win-exe.yml

@@ -195,15 +195,6 @@ jobs:
             *.msi
             *.asc
 
-  call-winget-flow:
-    needs: [get-version, build-msi]
-    if: github.event.action == 'published' && needs.get-version.outputs.type == 'stable'
-    uses: ./.github/workflows/winget.yml
-    with:
-      releaseTag: ${{ github.event.release.tag_name }}
-    secrets: inherit
-
-
   build-exe:
     name: Build .exe installer
     runs-on: windows-latest
@@ -308,6 +299,18 @@ jobs:
           files: |
             Cryptomator-*.exe
             Cryptomator-*.asc
+      - name: Slack Notification
+        uses: rtCamp/action-slack-notify@v2
+        env:
+          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
+          SLACK_USERNAME: 'Cryptobot'
+          SLACK_ICON: false
+          SLACK_ICON_EMOJI: ':bot:'
+          SLACK_CHANNEL: 'cryptomator-desktop'
+          SLACK_TITLE: "Windows build of ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} finished."
+          SLACK_MESSAGE: "Ready to <https://github.com/${{ github.repository }}/actions/workflows/winget.yml|deploy to Winget>."
+          SLACK_FOOTER: false
+          MSG_MINIMAL: true
 
   allowlist:
     name: Anti Virus Allowlisting

+ 1 - 6
.github/workflows/winget.yml

@@ -1,11 +1,6 @@
 name: Release to Winget
 
 on:
-  workflow_call:
-    inputs:
-      releaseTag:
-        required: true
-        type: string
   workflow_dispatch:
     inputs:
       releaseTag:
@@ -18,7 +13,7 @@ jobs:
     name: Publish on winget repo
     runs-on: windows-latest
     steps:
-      - name: Get download url for msi artifacts
+      - name: Get download url for release assets
         id: get-release-assets
         uses: actions/github-script@v6
         with: