Update .gitea/workflows/release.yaml
All checks were successful
release / release-plugins (push) Successful in 23s
All checks were successful
release / release-plugins (push) Successful in 23s
This commit is contained in:
@@ -9,16 +9,18 @@ jobs:
|
||||
release-plugins:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "Action started"
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v3
|
||||
- run: apt update && apt install zip
|
||||
- name: setup go
|
||||
- name: Install zip
|
||||
run: apt update && apt install zip
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '>=1.20.1'
|
||||
- run: cd YouTubeMusic && zip -r YouTubeMusic.zip . && mv YouTubeMusic.zip ../
|
||||
- run: sha1=$(sha1sum YouTubeMusic.zip | cut -d ' ' -f1) && sed -i "s|<sha></sha>|<sha>$sha1</sha>|" repo.xml
|
||||
- name: Create zip file
|
||||
run: cd YouTubeMusic && zip -r YouTubeMusic.zip . && mv YouTubeMusic.zip ../
|
||||
- name: Create repo.xml with sha
|
||||
run: sha1=$(sha1sum YouTubeMusic.zip | cut -d ' ' -f1) && sed -i "s|<sha></sha>|<sha>$sha1</sha>|" repo.xml && echo $sha1
|
||||
- name: Release
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user