-
Notifications
You must be signed in to change notification settings - Fork 6
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
1 parent
98db3f7
commit 2fa4485
Showing
6 changed files
with
93 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Update CITATION.cff on Release | ||
|
||
on: # yamllint disable-line rule:truthy | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-citation: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
with: | ||
ref: refs/heads/master | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@master | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install requests PyYAML | ||
- name: Update CITATION.cff | ||
run: | | ||
python .github/scripts/update_citation.py | ||
- name: Commit and Push CITATION.cff Update | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git diff --exit-code || ( | ||
git add CITATION.cff && | ||
git commit -m "Update CITATION.cff with latest release date" && | ||
git push | ||
) |
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,36 @@ | ||
--- | ||
name: pypi | ||
|
||
on: # yamllint disable-line rule:truthy | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: pypi repository | ||
url: https://pypi.org/p/pyspeckle | ||
|
||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- uses: actions/setup-python@master | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Build | ||
run: | | ||
pip install setuptools wheel twine build | ||
pip install -r requirements.txt | ||
python -m build | ||
- name: Publish package to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
verbose: true |
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 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