mirror of
https://github.com/233boy/sing-box.git
synced 2026-05-02 22:04:40 +08:00
32 lines
704 B
YAML
32 lines
704 B
YAML
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 }}
|