Skip to content

Commit

Permalink
The changes made in this commit include:
Browse files Browse the repository at this point in the history
- Modified .github/workflows/release.yml to add commands for listing directory contents
- Modified .github/workflows/release.yml to change the way the release is created
- Modified .github/workflows/release.yml to include the zip file in the release creation command
  • Loading branch information
ncx-kevinCefalu committed Sep 28, 2023
1 parent df5ed90 commit 117a4d5
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,25 @@ jobs:
# Create zip file
zip -r dist/${{ env.PLUGIN_NAME }}.zip dist/${{ env.PLUGIN_NAME }};
ls -la;
ls -la dist/;
- name: ⬆️ Publish Artifact
uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist/

- name: 🥳 Publish Release
working-directory: dist/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
echo "Creating release for refs/tags/$tag"
tag="${GITHUB_REF#refs/tags/}";
echo "Creating release for refs/tags/$tag";
zip="dist/${{ env.PLUGIN_NAME }}.zip";
echo "Including: $zip";
gh release create "$tag" --title="v$tag" \
--prerelease \ # TODO: Change based on tag
--discussion-category "Announcements" \
${{ env.PLUGIN_NAME }}.zip
# TODO: Change based on tag
gh release create "$tag" --title="v$tag" --prerelease \
--discussion-category "Announcements" "$zip";

0 comments on commit 117a4d5

Please sign in to comment.