30 lines
807 B
YAML
30 lines
807 B
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
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
|
|
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: Release
|
|
uses: https://gitea.com/actions/release-action@main
|
|
with:
|
|
tag_name: 0.0.1
|
|
files: |-
|
|
YouTubeMusic.zip
|
|
repo.xml
|
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|