0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-09-28 01:29:03 +03:00

Release notes

This commit is contained in:
Andrey Onishchenko
2024-02-09 17:35:17 +03:00
parent a28db76a6b
commit 1f0975300f
8 changed files with 72 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ case $OS in
"Arch Linux")
echo "Arch Linux"
pacman -Syy --noconfirm
pacman -S --noconfirm git sudo base-devel p7zip nodejs jq asar electron libpulse dpkg unzip xdg-utils
pacman -S --noconfirm git sudo base-devel p7zip nodejs jq asar electron libpulse dpkg unzip xdg-utils python
# fix makepkg from non-root
mkdir /home/build
chgrp nobody /home/build
@@ -30,6 +30,7 @@ case $OS in
mv *.pkg.tar.zst dist
mv ./src/app/yandexmusic.asar dist/yandexmusic.asar
mv ./src/app/release_notes.json dist/release_notes.json
sh ./build_deb.sh -a all
mv deb/*.deb dist

View File

@@ -44,6 +44,11 @@ jobs:
path: ./dist/*.asar
name: asar-packages
- name: Upload Release Notes
uses: actions/upload-artifact@v4
with:
path: ./dist/release_notes.json
nix-build:
runs-on: ubuntu-latest
env:

View File

@@ -10,4 +10,4 @@ tag_name="v$VERSION"
#write variables to github env
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "release_name=$release_name" >> $GITHUB_ENV
echo "tag_name=$tag_name" >> $GITHUB_ENV
echo "tag_name=$tag_name" >> $GITHUB_ENV

View File

@@ -55,11 +55,11 @@ jobs:
commit_long_sha: ${{ steps.commit.outputs.commit_long_sha }}
build:
if: ${{ (github.event_name == 'push') || (github.event_name == 'workflow_dispatch') || (needs.update_packages.new_version) }}
if: ${{ (github.event_name == 'push') || (github.event_name == 'workflow_dispatch') || (needs.update_packages.outputs.new_version) }}
needs: update_packages
uses: ./.github/workflows/build.yml
with:
ref: ${{ (needs.update_packages.commit_long_sha || '') }}
ref: ${{ (needs.update_packages.outputs.commit_long_sha || '') }}
upload-release:
needs: build
@@ -68,7 +68,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ (needs.build.needs.update_packages.commit_long_sha || '') }}
ref: ${{ (needs.build.needs.update_packages.outputs.commit_long_sha || '') }}
- name: Download artifact
uses: actions/download-artifact@v4
@@ -81,6 +81,11 @@ jobs:
sudo apt-get update
sudo apt-get install jq
sh ./.github/workflows/retrieve_version.sh
- name: Get Release HTML
run: echo "release_html=$(jq -r '."desktop-release-notes.$VERSION"' ./dist/release_notes.json)" >> $GITHUB_ENV
- run: rm -rf dist/release_notes.json
- name: Tag Repo
uses: richardsimko/update-tag@v1
@@ -98,4 +103,5 @@ jobs:
name: ${{ env.release_name }}
replacesArtifacts: true
tag: ${{ env.tag_name }}
body: ${{ env.release_html }}