Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanyeye authored Jan 25, 2023
1 parent b295f5e commit 82230ca
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set variables
run: |
echo "RELEASE_NAME=Released on $(date +%Y.%m.%d-%H:%M)" >> $GITHUB_ENV
echo "TAG_NAME=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV

- name: Generate rules.txt file
run: |
for x in $(find $pwd -name "*rules.txt" | xargs ls -d); do
echo ${x}
file=${x#*./}
curl -sSL "https://raw.githubusercontent.com/$GITHUB_REPOSITORY/main/${file}" > ${file}
# 设置环境变量
echo "RELEASE_NAME=Released on $(date +%Y.%m.%d-%H:%M)" >> $GITHUB_ENV
echo "TAG_NAME=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
# 下载*rules.txt文件
mkdir publish
for file in $(find $pwd -name "*rules.txt" | xargs ls -d); do
curl -sSL "https://raw.githubusercontent.com/$GITHUB_REPOSITORY/main/${file#*./}" > "./publish/${file#*./}"
done
- name: Move files to publish directory
run: |
mkdir -p publish
cp *.txt ./publish/
cd publish
ls -al
- name: Release and upload assets
uses: softprops/action-gh-release@v0.1.6
Expand Down

0 comments on commit 82230ca

Please sign in to comment.