Skip to content

Commit

Permalink
ci: update build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kometenstaub committed Dec 20, 2022
1 parent deccbc1 commit b44c2e5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ jobs:
git config user.name "kometenstaub"
git config user.email "83140328+kometenstaub@users.noreply.github.com"
npx rexreplace "^.*?#(#+\s\[.*?\n.*?)(?=\s*#+\s\[)" "_" -s -M -G -m -o "CHANGELOG.md" > CHANGELOG-LATEST.md
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
# echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
# https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files
- name: Tag name
id: tag-name
run: echo "tag_name=$(git tag --sort version:refname | tail -n 1)" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -54,7 +59,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ env.PLUGIN_NAME }}.zip
asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip
asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.tag-name.outputs.tag_name }}.zip
asset_content_type: application/zip
- name: Upload main.js
id: upload-main
Expand Down

0 comments on commit b44c2e5

Please sign in to comment.