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:
|
release-plugins:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "Action started"
|
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- run: apt update && apt install zip
|
- name: Install zip
|
||||||
- name: setup go
|
run: apt update && apt install zip
|
||||||
|
- name: Setup go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '>=1.20.1'
|
go-version: '>=1.20.1'
|
||||||
- run: cd YouTubeMusic && zip -r YouTubeMusic.zip . && mv YouTubeMusic.zip ../
|
- name: Create zip file
|
||||||
- run: sha1=$(sha1sum YouTubeMusic.zip | cut -d ' ' -f1) && sed -i "s|<sha></sha>|<sha>$sha1</sha>|" repo.xml
|
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
|
- name: Release
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: https://gitea.com/actions/release-action@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user