Skip to content

Commit

Permalink
Modified .github/workflows/release.yml to change the working director…
Browse files Browse the repository at this point in the history
…y and zip file path for the Publish Release job.
  • Loading branch information
ncx-kevinCefalu committed Sep 28, 2023
1 parent 117a4d5 commit e900db2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ 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:
Expand All @@ -56,11 +52,13 @@ jobs:
- name: 🥳 Publish Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: dist
run: |
tag="${GITHUB_REF#refs/tags/}";
zip="${{ env.PLUGIN_NAME }}.zip";
echo "Creating release for refs/tags/$tag";
zip="dist/${{ env.PLUGIN_NAME }}.zip";
echo "Including: $zip";
ls -la;
# TODO: Change based on tag
gh release create "$tag" --title="v$tag" --prerelease \
Expand Down

0 comments on commit e900db2

Please sign in to comment.