Skip to content

Commit

Permalink
cleanup CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
y-polek committed Jun 8, 2024
1 parent 6586fcb commit 2e8ce08
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ jobs:
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
runs-on: ubuntu-latest
outputs:
name: ${{ steps.properties.outputs.name }}
version: ${{ steps.properties.outputs.version }}
artifact: ${{ steps.properties.outputs.pluginName }}-${{ steps.properties.outputs.version }}.zip
changelog: ${{ steps.properties.outputs.changelog }}
steps:

# Check out current repository
Expand Down Expand Up @@ -114,20 +109,16 @@ jobs:
echo "name=$(./gradlew properties --console=plain -q | grep "^name:" | cut -f2- -d ' ')" >> $GITHUB_OUTPUT
echo "pluginName=$(./gradlew properties --console=plain -q | grep "^pluginName:" | cut -f2- -d ' ')" >> $GITHUB_OUTPUT
CHANGELOG=$(./gradlew getChangelog --unreleased --no-header --console=plain -q)
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "changelog=$CHANGELOG" >> $GITHUB_OUTPUT
# Build artifact using buildPlugin Gradle task
- name: Build Plugin
run: ./gradlew buildPlugin

# Upload plugin artifact to make it available in the next jobs
- name: Changelog
run: ./gradlew getChangelog --console=plain -q > ./build/distributions/CHANGELOG.md

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.properties.outputs.pluginName }}-${{ steps.properties.outputs.version }}.zip
name: bundle
path: ./build/distributions/
if-no-files-found: error

0 comments on commit 2e8ce08

Please sign in to comment.