mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-15 14:17:24 +08:00
udpate release.yml
This commit is contained in:
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -29,8 +29,11 @@ on:
|
|||||||
default: true
|
default: true
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
release:
|
||||||
if: contains('["KKRainbow"]', github.actor)
|
if: contains('["KKRainbow"]', github.actor)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -70,9 +73,9 @@ jobs:
|
|||||||
ls -l -R ./
|
ls -l -R ./
|
||||||
chmod -R 755 .
|
chmod -R 755 .
|
||||||
|
|
||||||
mkdir ./zipped
|
mkdir ../zipped_assets
|
||||||
for x in `ls`; do
|
for x in `ls`; do
|
||||||
zip ./zipped/$x-${VERSION}.zip $x/*;
|
zip ../zipped_assets/$x-${VERSION}.zip $x/*;
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
@@ -81,6 +84,6 @@ jobs:
|
|||||||
name: ${{ inputs.version }}
|
name: ${{ inputs.version }}
|
||||||
draft: true
|
draft: true
|
||||||
files: |
|
files: |
|
||||||
./release_assets/zipped/*
|
./zipped_assets/*
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
tag_name: ${{ inputs.version }}
|
tag_name: ${{ inputs.version }}
|
||||||
Reference in New Issue
Block a user