Skip to content

Commit

Permalink
feat: add release workflow (#2)
Browse files Browse the repository at this point in the history
* feat: add custom rules (#1)

* feat(workflows): add release workflow
  • Loading branch information
picopock authored Apr 22, 2023
1 parent 2d00cb0 commit 4dd540b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: release

on:
push:
tags:
- 'v*.*.*'

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Get Version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT

- name: Package files
run: |
mkdir clash-premium-config-${{ steps.get_version.outputs.VERSION }}
tar -zcvf clash-premium-config-${{ steps.get_version.outputs.VERSION }}.tar.gz ./config ./README.md
zip -r clash-premium-config-${{ steps.get_version.outputs.VERSION }}.zip ./config ./README.md
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./clash-premium-config-*
draft: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
- Note

`config.yaml` and `dashboard` are requried。
`dashboard` can download from [here](https://github.com/Dreamacro/clash-dashboard/tree/gh-pages)
`dashboard` can download from [here](https://github.com/Dreamacro/clash-dashboard/tree/gh-pages)
Add your subscribe address to `./custom_rules/direct.yaml` file.

- [config.yaml](https://github.com/picopock/clash_premium_config/blob/master/config/config.yaml)
Expand Down

0 comments on commit 4dd540b

Please sign in to comment.