Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update refs in semantic release #93

Merged
merged 16 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Deploy Sphinx content to GitHub Pages
name: Deploy Sphinx documentation
name: Docs

on:
# Runs on pushes targeting the default branch
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ on:
releaseType:
description: 'The type of release'
required: false
default: 'prerelease'
default: ''
type: choice
options:
- ''
- prerelease
- release
force:
Expand Down Expand Up @@ -191,8 +192,6 @@ jobs:
environment:
name: release
concurrency: semanticRelease
# Only run if this is the primary origin main branch
# debug if: ${{ github.ref == 'refs/heads/main' && github.repository == 'sandialabs/sansmic' }}

permissions:
id-token: write
Expand Down Expand Up @@ -255,7 +254,7 @@ jobs:
tag: true
prerelease: ${{ ! (inputs.releaseType == 'release') }}
force: ${{ inputs.force }}
vcs_release: false
vcs_release: true

- name: Publish | Upload to GitHub Release Assets
uses: python-semantic-release/[email protected]
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![Lines of code](https://sloc.xyz/github/sandialabs/sansmic/?category=code)
[![Test Matrix](https://github.com/sandialabs/sansmic/actions/workflows/test-matrix.yml/badge.svg?branch=main)](https://github.com/sandialabs/sansmic/actions/workflows/test-matrix.yml)
[![codecov](https://codecov.io/github/sandialabs/sansmic/graph/badge.svg?token=oDeMIUHoqg)](https://codecov.io/github/sandialabs/sansmic)

[![Continuous Integration - Full Test Target Suite](https://github.com/sandialabs/sansmic/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/sandialabs/sansmic/actions/workflows/continuous-integration.yml)
[![Deploy Sphinx documentation](https://github.com/sandialabs/sansmic/actions/workflows/gh-pages.yml/badge.svg?branch=main)](https://github.com/sandialabs/sansmic/actions/workflows/gh-pages.yml)

[![pypi](https://img.shields.io/pypi/v/sansmic.svg?maxAge=3600)](https://pypi.org/project/sansmic/)
Expand Down Expand Up @@ -39,7 +39,7 @@ It can also be installed by downloading a wheel from the [releases]
in this repository, or by cloning this repository and building it
yourself. Finally, a standalone executable has been created that
will be added to each release for Windows users that are unable
due to install Python on their corporate computers (see the releases
due to install Python on their corporate computers (see the releases
on the right side of the page).


Expand Down Expand Up @@ -81,13 +81,13 @@ If you use sansmic for a publication, please use the following citation:
[doi:10.11578/dc.20240911.9](https://doi.org/10.11578/dc.20240911.9)

The list of current contributors is located in the [AUTHORS](AUTHORS.md) file.
If you would like to contribute, please read the
If you would like to contribute, please read the
[guide to contributing](CONTRIBUTING.md).

### License & Copyright
See [LICENSE](LICENSE) and [COPYRIGHT](COPYRIGHT.md).

[Sandia National Laboratories](https://www.sandia.gov)
[Sandia National Laboratories](https://www.sandia.gov)
is a multimission laboratory managed
and operated by National Technology & Engineering Solutions of Sandia,
LLC, a wholly owned subsidiary of Honeywell International Inc., for
Expand Down
11 changes: 1 addition & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,6 @@ version_variables = [

[tool.semantic_release.branches.release]
match = "main"
prerelease = false

[tool.semantic_release.branches.candidate]
match = "staging"
prerelease_token = "rc"
prerelease = true

[tool.semantic_release.branches.check-only]
match = "(?!main|master|staging)"

[tool.semantic_release.changelog]
template_dir = "templates"
Expand Down Expand Up @@ -146,7 +137,7 @@ allowed_tags = [
"release", # A push to main
]
minor_tags = ["feat", "release(feat)"]
patch_tags = ["fix", "perf", "refactor", "release"]
patch_tags = ["fix", "perf", "refactor"]
default_bump_level = 0

[tool.semantic_release.remote]
Expand Down
Loading