Skip to content

Commit

Permalink
fix(build): update paths for plugin directory in workflows
Browse files Browse the repository at this point in the history
Update paths to plugin directory in workflows for proper artifact handling.

- Modify paths in release and build workflows to point to the plugin directory.
- Update the path for artifact handling in the build workflow.
  • Loading branch information
phodal committed May 31, 2024
1 parent 8266b93 commit a0b6570
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
id: artifact
shell: bash
run: |
cd ${{ github.workspace }}/build/distributions
cd ${{ github.workspace }}/plugin/build/distributions
FILENAME=`ls *.zip`
unzip "$FILENAME" -d content
Expand All @@ -95,7 +95,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ steps.artifact.outputs.filename }}
path: ./build/distributions/content/*/*
path: ./plugin/build/distributions/content/*/*

# Run tests and upload a code coverage report
test:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ jobs:
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
run: ./gradlew publishPlugin
run: ./gradlew :plugin:publishPlugin

# Upload artifact as a release asset
- name: Upload Release Asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*
run: gh release upload ${{ github.event.release.tag_name }} ./plugin/build/distributions/*

# Create a pull request
- name: Create Pull Request
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@
# shire Changelog

## [Unreleased]

## [0.0.1] - 2024-05-31

### Added

- Initial scaffold created from [IntelliJ Platform Plugin Template](https://github.com/JetBrains/intellij-platform-plugin-template)

[Unreleased]: https://github.com/phodal/shire/compare/v0.0.1...HEAD
[0.0.1]: https://github.com/phodal/shire/commits/v0.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class ShireCompiler(
}
}

val execResult = runBlocking {
val execResult = runBlocking() {

Check notice on line 235 in language/src/main/kotlin/com/phodal/shirelang/compiler/DevInsCompiler.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unnecessary parentheses in function call with lambda

Unnecessary parentheses in function call with lambda
command.doExecute()
}

Expand Down

0 comments on commit a0b6570

Please sign in to comment.