From 7994233c55b75d98c9c31cb270ac5dc33f887209 Mon Sep 17 00:00:00 2001 From: MewX Date: Sat, 29 Aug 2020 02:53:55 +1000 Subject: [PATCH] Added Auto Release workflow --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ CHANGELOG.md | 4 ++++ README.md | 1 + 3 files changed, 32 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 CHANGELOG.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b8aba2d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +name: Release + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + Automatic Release by GitHub Workflow + draft: false + prerelease: false diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ed8fbcf --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +# Changelog + +# v0.1 +Initial dummy version. diff --git a/README.md b/README.md index 4431492..e34b1d3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Doubak [![GitHub Action CI](https://github.com/its-my-data/doubak/workflows/CI/badge.svg?branch=master)](https://github.com/its-my-data/doubak/actions?query=workflow%3ACI) +[![GitHub Action CI](https://github.com/its-my-data/doubak/workflows/Release/badge.svg?branch=master)](https://github.com/its-my-data/doubak/actions?query=workflow%3ARelease) 豆瓣 (Douban.com) 备份工具命令行版,备份完整页面镜像,Golang实现。