0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00

Upload to release script

This commit is contained in:
Andrey Onishchenko 2024-02-02 19:05:07 +03:00
parent 37702c14cf
commit 351cf8bd2a
2 changed files with 35 additions and 2 deletions

View File

@ -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
;;

View File

@ -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
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