Skip to content

Commit

Permalink
add release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsumoto-ren committed Mar 20, 2023
1 parent 02214da commit 48f38af
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/RELEASE/release-boilerplate.md
Original file line number Diff line number Diff line change
@@ -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!

<p align="center">
<a href="https://tatsumoto.neocities.org/blog/donating-to-tatsumoto.html" rel="nofollow"><img alt="Patreon" src="https://i.imgur.com/qkNP40F.png"></a>
<a href="https://github.com/Ajatt-Tools" rel="nofollow"><img src="https://user-images.githubusercontent.com/69171671/92849452-ddedf100-f3da-11ea-9405-ee17460751f9.png"></a>
<a href="https://tatsumoto.neocities.org/blog/join-our-community" rel="nofollow"><img src="https://tatsumoto.neocities.org/blog/img/join_us_on_element_220x51.png"></a>
</p>

## Changes
35 changes: 35 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 48f38af

Please sign in to comment.