Skip to content

Commit

Permalink
revert to old way of draft-release step
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghoriginal committed Mar 2, 2025
1 parent cbdd009 commit 3c3b6a1
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,11 @@ jobs:
name: drasi_vscode_extension
path: ${{ env.RELEASE_PATH}}

# Final release job (assuming other jobs like package-cli and vscode-extension exist)
# Final release job
release:
permissions:
contents: write
packages: read
packages: read
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Draft Release
Expand All @@ -599,17 +599,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4

- name: Download all artifacts
- name: Download CLI release
uses: actions/download-artifact@v4
with:
path: ./artifacts/
pattern: drasi_*
merge-multiple: true
path: ${{ env.RELEASE_PATH }}

- name: Download vscode release
uses: actions@v4
with:
name: drasi_vscode_extension
merge-multiple: true
path: ${{ env.RELEASE_PATH }}

- name: Move artifact files to release directory
- name: Draft Release
run: |
mkdir -p ./release
find ./artifacts -type f -exec mv {} ./release/ \;
- name: Create Draft Release
run: gh release create ${{ inputs.tag }} ./release/* --draft --title ${{ inputs.tag }} --target ${{ github.ref_name }} --generate-notes
gh release create ${{ inputs.tag }} ${{ env.RELEASE_PATH }}/* --draft --title ${{ inputs.tag }} --target ${{ github.ref_name }} --generate-notes

0 comments on commit 3c3b6a1

Please sign in to comment.