Procházet zdrojové kódy

fix debian artifact upload

Armin Schrenk před 2 roky
rodič
revize
0d8d7e4ee5
1 změnil soubory, kde provedl 5 přidání a 7 odebrání
  1. 5 7
      .github/workflows/debian.yml

+ 5 - 7
.github/workflows/debian.yml

@@ -148,10 +148,8 @@ jobs:
           echo "TAG_NAME=${REF##*/}" >> $GITHUB_ENV
       - name: Publish Debian package on GitHub Releases
         if: startsWith(inputs.ref, 'refs/tags/')
-        uses: softprops/action-gh-release@v1
-        with:
-          fail_on_unmatched_files: true
-          token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }}
-          files: |
-            cryptomator_*_amd64.deb
-            cryptomator_*.asc
+        env:
+          GITHUB_TOKEN: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }}
+        run: |
+          artifacts=$(ls | grep cryptomator*.deb)
+          gh release upload ${{ env.TAG_NAME }} $artifacts