Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
zmhu committed Sep 20, 2023
1 parent f1d98f8 commit 03070bd
Showing 1 changed file with 28 additions and 47 deletions.
75 changes: 28 additions & 47 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,54 +112,35 @@ jobs:
- name: Display structure of downloaded files
run: ls -R

- name: Create Release
uses: marvinpinto/action-automatic-releases@latest
# - name: Release
# uses: meeDamian/github-release@2.0
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# tag: Release-v${{ steps.get_version.outputs.version-without-v }}
# name: Release-v${{ steps.get_version.outputs.version-without-v }}
# body: Release ${{ steps.get_version.outputs.version-without-v }}
# draft: true
# gzip: false
# files: ${{steps.download.outputs.download-path}}/
# env:
# VERSION: ${{ steps.get_version.outputs.version-without-v }}

- name: Create Release # https://trstringer.com/github-actions-create-release-upload-artifacts/
id: create_release
uses: actions/create-release@v1
env:
VERSION: ${{ steps.get_version.outputs.version-without-v }}
FOLDER: ${{steps.download.outputs.download-path}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: "${{ steps.get_version.outputs.version-without-v }}"
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
draft: true
title: Release-v${{ steps.get_version.outputs.version-without-v }}
automatic_release_tag: Release-v${{ steps.get_version.outputs.version-without-v }}
prerelease: false
files: |
list=$(find $FOLDER)
for sfile in ${list}; do
if [ -f $sfile ]; then
echo $sfile
fi
done
# - name: Release
# uses: meeDamian/github-release@2.0
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# tag: Release-v${{ steps.get_version.outputs.version-without-v }}
# name: Release-v${{ steps.get_version.outputs.version-without-v }}
# body: Release ${{ steps.get_version.outputs.version-without-v }}
# draft: true
# gzip: false
# files: ${{steps.download.outputs.download-path}}/
# env:
# VERSION: ${{ steps.get_version.outputs.version-without-v }}
tag_name: Release-v${{ steps.get_version.outputs.version-without-v }}
release_name: Release-v${{ steps.get_version.outputs.version-without-v }}

# - name: Create Release # https://trstringer.com/github-actions-create-release-upload-artifacts/
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# VERSION: "${{ steps.get_version.outputs.version-without-v }}"
# with:
# draft: true
# tag_name: Release-v${{ steps.get_version.outputs.version-without-v }}
# release_name: Release-v${{ steps.get_version.outputs.version-without-v }}

# - name: Upload Releases
# id: upload_release_assets
# uses: dwenegar/upload-release-assets@v1 #https://github.com/marketplace/actions/upload-multiple-assets-to-a-release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# release_id: ${{ steps.create_release.outputs.id }}
# assets_path: ${{steps.download.outputs.download-path}}
- name: Upload Releases
id: upload_release_assets
uses: dwenegar/upload-release-assets@v1 #https://github.com/marketplace/actions/upload-multiple-assets-to-a-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}
assets_path: ${{steps.download.outputs.download-path}}

0 comments on commit 03070bd

Please sign in to comment.