Skip to content

Commit

Permalink
Merge branch 'main' into feature/ucc-as-a-library
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Faircloth authored Jun 8, 2021
2 parents cb11ae3 + aa07fcf commit febd4dd
Show file tree
Hide file tree
Showing 7 changed files with 1,713 additions and 43 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ jobs:
path: /tmp/analysis-reports
- name: Update Notices
run: cp -f /tmp/analysis-reports/NOTICE_summary NOTICE

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2.5.4
with:
Expand All @@ -241,7 +240,9 @@ jobs:
@semantic-release/exec
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.SEMREL_TOKEN }} #
GITHUB_TOKEN: ${{ secrets.SEMREL_TOKEN }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
update-semver:
name: Move Respository semver tags
if: startsWith(github.ref, 'refs/tags/v')
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/sr-prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -eE
set -v
source $HOME/.poetry/env
poetry version $1
poetry build
7 changes: 7 additions & 0 deletions .github/workflows/sr-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -eE
set -v
source $HOME/.poetry/env
echo pypy user=${PYPI_USERNAME}
poetry publish -n -u ${PYPI_USERNAME} -p ${PYPI_TOKEN}
10 changes: 4 additions & 6 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@
# limitations under the License.
#
{
"branches":
branches:
[
"+([0-9])?(.{+([0-9]),x}).x",
"main",
"next",
"next-major",
{ name: "develop", prerelease: true },
{ name: "develop", prerelease: "beta", channel: "beta" },
],
plugins:
[
Expand All @@ -29,8 +27,8 @@
[
"@semantic-release/exec",
{
"prepareCmd": "source $HOME/.poetry/env ;poetry version ${nextRelease.version}; poetry build",
"publishCmd": "source $HOME/.poetry/env ;poetry publish ;poetry publish --build -u $PYPI_USERNAME -p $PYPI_TOKEN",
"prepareCmd": "./.github/workflows/sr-prepare.sh ${nextRelease.version}",
"publishCmd": "./.github/workflows/sr-release.sh",
"shell": "bash"
},
],
Expand Down
1,691 changes: 1,691 additions & 0 deletions NOTICE

Large diffs are not rendered by default.

31 changes: 1 addition & 30 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,9 @@ jsonschema = "^3.2.0"
[tool.poetry.dev-dependencies]
pytest = "^6.2"
pytest-splunk-addon = { version = "^1.6", extras = [ "docker" ] }
poetry-dynamic-versioning = "^0.13"
pytest-cov = "^2.12.1"
coverage = "^5.5"

[tool.poetry-dynamic-versioning]
enable = true
format-jinja = "{% if stage == none %}{{ base }}{% else %}{{ base }}.{{ stage[0:3] }}{{ revision }}{% endif %}"

[tool.poetry.scripts]
ucc-gen="splunk_add_on_ucc_framework:main"
install-libs="splunk_add_on_ucc_framework:install_requirements"
Expand Down

0 comments on commit febd4dd

Please sign in to comment.