-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
549 additions
and
193 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
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 |
---|---|---|
@@ -1,35 +1,55 @@ | ||
name: Release desertislandutils | ||
# create a release from the latest tag on MAIN or something | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
env: | ||
ACTIONS_STEP_DEBUG: true | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Merge Release Branch and Tag] | ||
types: [completed] | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- run: python --version | ||
- run: | | ||
pipx install --python $(which python) poetry | ||
poetry install | ||
poetry show --latest | ||
- run: | | ||
- name: Install Poetry | ||
run: | | ||
python --version | ||
pipx install --python $(which python) poetry | ||
poetry --version | ||
poetry install | ||
poetry show --latest | ||
- name: Get Gatest Tag | ||
id: get_tag | ||
run: | | ||
git branch --list | ||
git log --oneline --tags -n10 --pretty=format:'%h %as %cn %x09%s %d' | ||
echo | ||
echo "current tag is ${{ github.ref_name }}" | ||
echo "current ref is ${{ github.ref_name }}" | ||
latest_tag="$(git describe --tags --abbrev=0)" | ||
echo "latest tag: ${latest_tag}" | ||
echo latest_tag="${latest_tag}" >> $GITHUB_OUTPUT | ||
- name: Build poetry distribution | ||
run: poetry build | ||
- name: Build Poetry Distribution from Latest Tag | ||
run: | | ||
git checkout ${{ steps.get_tag.outputs.latest_tag }}" | ||
poetry build | ||
- name: Create release from tag | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "dist/*" | ||
generateReleaseNotes: true | ||
tag: ${{ steps.get_tag.outputs.latest_tag }} |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.3.7' | ||
__version__ = '0.3.8' |
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,46 @@ | ||
# Default justfile for import | ||
|
||
# just --list | ||
[private] | ||
ac3e01d: | ||
@just --justfile base.justfile --list --unsorted --list-heading $'Default Justfile for Imports\n' | ||
|
||
# color code definitions for use in any justfile | ||
[private] | ||
colordefs: | ||
@echo | ||
@echo "{{BCY}}Terminal color code definitions included for use in any justfile{{NC}}" | ||
@echo ' For example, {{{{BCY}} gives:' | ||
@echo " {{BCY}}Bright Cyan{{NC}}" | ||
@echo | ||
|
||
# show the color codes | ||
colortest: | ||
@echo " {{NC}}NC{{NC}}" | ||
@echo " {{BK}}BK{{NC}} {{BL}}BL{{NC}}" | ||
@echo " {{BBK}}BBK{{NC}} {{BBL}}BBL{{NC}}" | ||
@echo " {{RD}}RD{{NC}} {{MG}}MG{{NC}}" | ||
@echo " {{BRD}}BRD{{NC}} {{BMG}}BMG{{NC}}" | ||
@echo " {{GR}}GR{{NC}} {{CY}}CY{{NC}}" | ||
@echo " {{BGR}}BGR{{NC}} {{BCY}}BCY{{NC}}" | ||
@echo " {{YW}}YW{{NC}} {{WT}}WT{{NC}}" | ||
@echo " {{BYW}}BYW{{NC}} {{BWT}}BWT{{NC}}" | ||
|
||
# color decorations | ||
BK := '\033[0;30m' # Black | ||
BBK := '\033[1;30m' # Bright Gray | ||
RD := '\033[0;31m' # Red | ||
BRD := '\033[1;31m' # Bright Red | ||
GR := '\033[0;32m' # Green | ||
BGR := '\033[1;32m' # Bright Green | ||
YW := '\033[0;33m' # Yellow | ||
BYW := '\033[1;33m' # Bright Yellow | ||
BL := '\033[0;34m' # Blue | ||
BBL := '\033[1;34m' # Light Blue | ||
MG := '\033[0;35m' # Magenta | ||
BMG := '\033[1;35m' # Light Purple | ||
CY := '\033[0;36m' # Cyan | ||
BCY := '\033[1;36m' # Light Cyan | ||
WT := '\033[0;37m' # White | ||
BWT := '\033[1;37m' # Light White | ||
NC := '\033[0m' |
Oops, something went wrong.