Skip to content

Commit

Permalink
Actions: use datetime as version (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu authored Dec 12, 2023
1 parent 0af30dc commit 815a5fb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,25 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

- name: Generate Version
id: shell
run: |
echo "version=$(date -u '+%Y.%-m%d.%-H%M.0')" >> $GITHUB_OUTPUT
- name: Make bundle
run: |
echo v${{ steps.shell.outputs.version }} > VERSION
mkdir -p MetaTube.bundle/
mv VERSION MetaTube.bundle/
mv Contents/ MetaTube.bundle/
zip -r MetaTube.bundle.zip MetaTube.bundle/
- name: Upload Releases
uses: softprops/action-gh-release@v1
with:
files: 'MetaTube.bundle.zip'
body: '_Auto Released by GitHub Actions_'
tag_name: 'bundle'
files: MetaTube.bundle.zip
body: _Auto Released by GitHub Actions_
name: v${{ steps.shell.outputs.version }}
tag_name: bundle
draft: false
prerelease: false
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
[![GitHub top language](https://img.shields.io/github/languages/top/metatube-community/MetaTube.bundle?color=%23FFD43B&label=Python&logo=python)](https://github.com/metatube-community/MetaTube.bundle/search?l=python)
[![License](https://img.shields.io/github/license/metatube-community/MetaTube.bundle)](https://github.com/metatube-community/MetaTube.bundle/blob/main/LICENSE)
[![Telegram Group](https://img.shields.io/badge/Telegram-2CA5E0?logo=telegram&logoColor=white)](https://t.me/MetaTubePlugin)
[![GitHub all releases](https://img.shields.io/github/downloads/metatube-community/MetaTube.bundle/total)](https://github.com/metatube-community/MetaTube.bundle)
[![Docker Pulls](https://img.shields.io/docker/pulls/metatube/metatube-server?logo=docker)](https://hub.docker.com/r/metatube/metatube-server)
[![Releases](https://img.shields.io/github/v/release/metatube-community/MetaTube.bundle?display_name=release&logo=smartthings)](https://github.com/metatube-community/MetaTube.bundle/releases)

## Features

Expand Down
2 changes: 2 additions & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
[![GitHub top language](https://img.shields.io/github/languages/top/metatube-community/MetaTube.bundle?color=%23FFD43B&label=Python&logo=python)](https://github.com/metatube-community/MetaTube.bundle/search?l=python)
[![License](https://img.shields.io/github/license/metatube-community/MetaTube.bundle)](https://github.com/metatube-community/MetaTube.bundle/blob/main/LICENSE)
[![Telegram Group](https://img.shields.io/badge/Telegram-2CA5E0?logo=telegram&logoColor=white)](https://t.me/MetaTubePlugin)
[![GitHub all releases](https://img.shields.io/github/downloads/metatube-community/MetaTube.bundle/total)](https://github.com/metatube-community/MetaTube.bundle)
[![Docker Pulls](https://img.shields.io/docker/pulls/metatube/metatube-server?logo=docker)](https://hub.docker.com/r/metatube/metatube-server)
[![Releases](https://img.shields.io/github/v/release/metatube-community/MetaTube.bundle?display_name=release&logo=smartthings)](https://github.com/metatube-community/MetaTube.bundle/releases)

## 特性

Expand Down

0 comments on commit 815a5fb

Please sign in to comment.