This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Commit Version Changes | |
run: | | |
git config --local user.email "build@sunshower.io" | |
git config --local user.name "build" | |
git commit -am "Final Release [tag: final, version: ${{steps.finalVersion.outputs.result}}]" | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
git tag -a v${{ steps.finalVersion.outputs.result }} -m "Releasing ${{ steps.finalVersion.outputs.result }}" | |
git push origin v${{ steps.finalVersion.outputs.result }} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Deploy Bills-Of-Materials | |
run: >- | |
mvn install deploy -f bom | |
--settings bom/settings/settings.xml | |
-Dsunshower-repo.username=${{secrets.MAVEN_REPOSITORY_USERNAME}} | |
-Dsunshower-repo.password=${{secrets.MAVEN_REPOSITORY_PASSWORD}} -e | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Increment Bills-of-Materials | |
run: | | |
mvn versions:set -DnewVersion=${{ steps.finalVersion.outputs.result }} -f bom | |
mvn clean install -f bom | |
- name: Increment Zephyr Maven Plugin Version | |
run: >- | |
mvn versions:set | |
-DnewVersion=${{ steps.finalVersion.outputs.result }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def loadProperties() { | |
def props = new Properties() | |
def file = new File("gradle.properties") | |
file.withInputStream { | |
props.load(it) | |
} | |
return props | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<servers> | |
<server> | |
<id>sunshower-oss-repo</id> | |
<username>${oss-repo.username}</username> | |
<password>${oss-repo.password}</password> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Generate Build Number | |
id: buildnumber | |
uses: einaregilsson/build-number@v2 | |
with: | |
token: ${{ secrets.github_token }} | |
prefix: zephyr | |
# Accessible via ${{ steps.finalVersion.outputs.result }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Generate Build Number | |
id: buildnumber | |
uses: einaregilsson/build-number@v2 | |
with: | |
token: ${{ secrets.github_token }} | |
prefix: zephyr | |
# Accessible via ${{ steps.finalVersion.outputs.result }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prepare Zephyr Release | |
on: | |
push: | |
tags: | |
- 't*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Plugin extends ResourceLoader, Startable, Stoppable, Lifecycle { | |
/** | |
* Useful for extension points | |
* @return | |
*/ | |
List<String> getClassifiers(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface PluginManager { | |
/** | |
* | |
* @param filter | |
* @return the set of plugins for which the filter returns true | |
*/ | |
List<Plugin> list(Predicate<Plugin> filter); | |
/** Wait until all pending deployments have been deployed */ |