mirror of
https://github.com/233boy/sing-box.git
synced 2026-05-03 06:14:41 +08:00
up
This commit is contained in:
31
.github/workflows/release.yml
vendored
Normal file
31
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Main
|
||||
|
||||
on: push
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: get ver
|
||||
run: |
|
||||
echo "$(cat *.sh | grep is_sh_ver=)" >> $GITHUB_ENV
|
||||
echo "old=$(git tag | tail -n1)" >> $GITHUB_ENV
|
||||
# - name: test
|
||||
# if: env.is_sh_ver == env.old
|
||||
# run: |
|
||||
# echo not found new version.
|
||||
# exit 1
|
||||
- name: tar
|
||||
run: tar zcvf code.tar.gz ./*
|
||||
- name: release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: code.tar.gz
|
||||
tag_name: ${{ env.is_sh_ver }}
|
||||
Reference in New Issue
Block a user