Skip to content

Commit

Permalink
Dada
Browse files Browse the repository at this point in the history
  • Loading branch information
agajdosi committed Nov 21, 2024
1 parent 9978297 commit 4ed0ff3
Showing 1 changed file with 28 additions and 17 deletions.
45 changes: 28 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,37 @@ jobs:
echo "name=$(jq -r '.name' package.json)" >> $GITHUB_ENV
echo "version=$(jq -r '.version' package.json)" >> $GITHUB_ENV
# Step 6: Create the GitHub Release
- name: Create GitHub Release
id: create_release
uses: comnoco/create-release-action@v2
- name: Upload Release
uses: xresloader/upload-to-github-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "./dist/*"
tag_name: v${{ env.version }}
release_name: ${{ env.name }} v${{ env.version }}
body: |
## Release Notes
- Version: ${{ env.version }}
- Library: ${{ env.name }}
draft: false
prerelease: false
tags: true
draft: true
verbose: true

# Step 6: Create the GitHub Release
#- name: Create GitHub Release
# id: create_release
# uses: comnoco/create-release-action@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: v${{ env.version }}
# release_name: ${{ env.name }} v${{ env.version }}
# body: |
# ## Release Notes
# - Version: ${{ env.version }}
# - Library: ${{ env.name }}
# draft: false
# prerelease: false

# Step 7: Upload artifacts to the release
- name: Upload dist folder to Release
uses: AButler/[email protected]
with:
files: "${{ github.workspace }}/dist/*" # Matches all files in the dist folder
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: v${{ env.version }}
#- name: Upload dist folder to Release
# uses: AButler/[email protected]
# with:
# files: "${{ github.workspace }}/dist/*" # Matches all files in the dist folder
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# release-tag: v${{ env.version }}

0 comments on commit 4ed0ff3

Please sign in to comment.