From 351cf8bd2a2e90c21e70f5fc74bbb45558d59c89 Mon Sep 17 00:00:00 2001 From: Andrey Onishchenko Date: Fri, 2 Feb 2024 19:05:07 +0300 Subject: [PATCH] Upload to release script --- .github/workflows/build.sh | 2 ++ .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.sh b/.github/workflows/build.sh index 6b6c996..961085e 100755 --- a/.github/workflows/build.sh +++ b/.github/workflows/build.sh @@ -33,6 +33,8 @@ case $OS in mkdir dist mv *.pkg.tar.zst dist + mv ./src/app/yandexmusic.asar dist/yandexmusic.asar + sh ./build_deb.sh -a all mv deb/*.deb dist ;; diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 630c1dc..62346d6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ on: - '*' push: branches: - - '#master' + - 'master' jobs: @@ -37,6 +37,12 @@ jobs: path: ./dist/*.deb name: deb-packages + - name: Upload Asar artifacts + uses: actions/upload-artifact@v4 + with: + path: ./dist/*.asar + name: asar-packages + nix-build: runs-on: ubuntu-latest env: @@ -55,4 +61,29 @@ jobs: uses: actions/upload-artifact@v4 with: path: ./result/* - name: nix-package \ No newline at end of file + name: nix-package + + upload-release: + if: github.ref == 'refs/heads/master' + runs-on: ubuntu-latest + needs: [build, nix-build] + steps: + - name: Download artifact + uses: actions/download-artifact@v4 + with: + merge-multiple: true + path: dist + + - id: data + uses: pozetroninc/github-action-get-latest-release@v0.7.0 + with: + repository: ${{ github.repository }} + + - name: Upload files to a GitHub release + uses: svenstaro/upload-release-action@v2 + with: + file: dist/* + tag: ${{ steps.data.outputs.release }} + overwrite: true + file_glob: true + \ No newline at end of file