-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Merge non-code changes into main (#69)
build: update to create a standalone executable (#66) * ci: add executable to release workflow * ci: modify semantic-release pr requests to choose between release and chore * docs: update readme to show standalone version is available * ci: create reusable testing workflow --------- Signed-off-by: David Hart <[email protected]> Co-authored-by: David Hart <[email protected]>
- Loading branch information
1 parent
951ebbd
commit b24e801
Showing
5 changed files
with
127 additions
and
33 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ jobs: | |
release: | ||
runs-on: ubuntu-latest | ||
concurrency: release | ||
if: ${{ github.repository == 'sandialabs/sansmic' }} # do not run everywhere | ||
|
||
permissions: | ||
id-token: write | ||
|
@@ -34,10 +35,25 @@ jobs: | |
run: | | ||
git checkout -B ${{ github.ref_name }} ${{ github.sha }} | ||
- name: Action | Semantic Version Release | ||
- name: Action | Check if release is needed | ||
id: release | ||
# Adjust tag with desired version if applicable. | ||
uses: python-semantic-release/python-semantic-release@c1bcfdbb994243ac7cf419365d5894d6bfb2950e # v9.12.0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
git_committer_name: "github-actions" | ||
git_committer_email: "[email protected]" | ||
build: false | ||
changelog: false | ||
commit: false | ||
push: false | ||
tag: false | ||
vcs_release: false | ||
|
||
- name: Action | Semantic Release - Update version | ||
if: steps.release.outputs.released == 'true' | ||
# Adjust tag with desired version if applicable. | ||
uses: python-semantic-release/python-semantic-release@c1bcfdbb994243ac7cf419365d5894d6bfb2950e # v9.12.0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
git_committer_name: "github-actions" | ||
|
@@ -49,15 +65,16 @@ jobs: | |
tag: false | ||
vcs_release: false | ||
|
||
- name: create pull request | ||
- name: Action | Create Pull Request - Release | ||
if: steps.release.outputs.released == 'true' | ||
run: | | ||
gh pr create -B main -H staging --title 'Merge staging into main' --body 'Created by Github action: semantic-release.yml' | ||
gh pr create -B main -H staging --title "release: Merge into main and create tag as v${{ steps.release.outputs.version }}" --body 'Created by Github action: semantic-release.yml' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
#- name: Publish | Upload to GitHub Release Assets | ||
# uses: python-semantic-release/publish-action@3dccc469c6577f385b5e844ed29677fb1f4cb4b6 # v9.10.1 | ||
# if: steps.release.outputs.released == 'true' | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# tag: ${{ steps.release.outputs.tag }} | ||
- name: Action | Create Pull Request - Chore | ||
if: steps.release.outputs.released == 'false' | ||
run: | | ||
gh pr create -B main -H staging --title 'chore: Merge non-code changes into main' --body 'Created by Github action: semantic-release.yml' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
h5py==3.12.1 | ||
openpyxl==3.1.5 | ||
tabulate==0.9.0 | ||
lasio==0.31 | ||
pyinstaller==6.11.0 | ||
pyyaml==6.0.2 |
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