From 48f38af9791ee12272afc6888e7d6b402c6a2d13 Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Sat, 18 Mar 2023 02:33:36 +0300 Subject: [PATCH] add release scripts --- .github/RELEASE/release-boilerplate.md | 19 ++++++++++++++ .github/workflows/auto-release.yml | 35 ++++++++++++++++++++++++++ Makefile | 3 +-- 3 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 .github/RELEASE/release-boilerplate.md create mode 100644 .github/workflows/auto-release.yml diff --git a/.github/RELEASE/release-boilerplate.md b/.github/RELEASE/release-boilerplate.md new file mode 100644 index 0000000..067563e --- /dev/null +++ b/.github/RELEASE/release-boilerplate.md @@ -0,0 +1,19 @@ +## Installation + +You can download the released `zip` file and extract it to the `mpv/scripts` directory or run `make install`. See [Installation](https://github.com/Ajatt-Tools/mpvacious#installation) for details. + +## Issues + +If you face any problems when installing or using mpvacious, [ask in our chat](https://tatsumoto.neocities.org/blog/join-our-community.html)! + +## Support my work + +I would not have been able to develop this add-on without the support of my patrons. Thanks so much! + +

+Patreon + + +

+ +## Changes diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml new file mode 100644 index 0000000..7f936db --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,35 @@ +name: "tagged-release" + +on: + push: + tags: + - "v*" + +jobs: + tagged-release: + name: "Tagged Release" + runs-on: "ubuntu-latest" + permissions: + contents: write + + steps: + - name: "Checkout" + uses: actions/checkout@v3 + with: + fetch-depth: 1 + + - name: "Create zip" + run: | + make BRANCH=HEAD + + - name: "Create release" + uses: softprops/action-gh-release@v1 + with: + prerelease: false + generate_release_notes: true + append_body: true + body_path: .github/RELEASE/release-boilerplate.md + name: "mpvacious ${{github.ref_name}}" + files: | + .github/RELEASE/*.zip + .github/RELEASE/*.conf diff --git a/Makefile b/Makefile index 8d867e1..fc346ce 100644 --- a/Makefile +++ b/Makefile @@ -12,12 +12,11 @@ MD2HTML = md2html --github --full-html all: $(ZIP) docs: $(DOCS) -$(ZIP): $(DOCS) +$(ZIP): git archive \ --prefix=$(PROJECT)_$(VERSION)/ \ --format=zip \ -o $@ \ - --add-file=$(DOCS) \ $(BRANCH) \ $(DOCS):