-
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.
Merge pull request #162 from entelecheia/main
- Loading branch information
Showing
12 changed files
with
645 additions
and
1,023 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 |
---|---|---|
|
@@ -10,50 +10,36 @@ on: | |
types: | ||
- completed | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
build: | ||
# Name the Job | ||
name: semantic-release | ||
release: | ||
# check if the workflow result is success | ||
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} | ||
# Set the agent to run on | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.9] | ||
runs-on: ubuntu-latest | ||
concurrency: release | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
# Load all steps # | ||
steps: | ||
# Checkout the code base # | ||
- name: Checkout Code | ||
# Note: we need to checkout the repository at the workflow sha in case during the workflow | ||
# the branch was updated. To keep PSR working with the configured release branches, | ||
# we force a checkout of the desired release branch but at the workflow sha HEAD. | ||
- name: Setup | Checkout Repository at workflow sha | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.sha }} | ||
|
||
# set env variable | ||
- name: Set env variable | ||
run: echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV | ||
|
||
# install poetry | ||
- name: Install poetry | ||
run: pipx install poetry>=1.3.2 | ||
|
||
# install dependencies | ||
- name: Install dependencies | ||
run: poetry install --with dev | ||
|
||
- name: Python Semantic Release to PyPI | ||
- name: Setup | Force correct release branch on workflow sha | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
poetry run semantic-release --verbose publish | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
REPOSITORY_USERNAME: __token__ | ||
REPOSITORY_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
git checkout -B ${{ github.ref_name }} ${{ github.sha }} | ||
- name: Action | Semantic Version Release | ||
id: release | ||
# Adjust tag with desired version if applicable. | ||
uses: python-semantic-release/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
git_committer_name: "github-actions" | ||
git_committer_email: "[email protected]" |
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ __pycache__/ | |
pytest_cache/ | ||
pytest.xml | ||
.mypy_cache/ | ||
.venv/ | ||
|
||
# Coverage | ||
.coverage | ||
|
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 @@ | ||
3.12 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
DOTFILES_VERSION: 0.39.5 | ||
DOTFILES_VERSION: 0.41.4 | ||
packages: | ||
- name: 1password-cli | ||
apt: true | ||
|
Oops, something went wrong.