Skip to content

Commit

Permalink
Chore: Update DevOps tooling from central repository [skip ci]
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
ModeSevenIndustrialSolutions authored and github-actions[bot] committed Apr 29, 2024
1 parent 412674c commit 8dfe65b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ jobs:
echo "Attempting build with: python -m build"
python -m build
fi
echo "Checking build artefacts with twine: dist/*"
- name: "Validating Artefacts with Twine"
run: |
echo "Validating artefacts with: twine check dist/*"
pip install --upgrade twine
twine check dist/*
18 changes: 18 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ env:
### BUILD ###

jobs:

build:
name: "🐍 Build packages"
# Only publish on tag pushes
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
# IMPORTANT: mandatory for Sigstore
Expand Down Expand Up @@ -97,6 +100,21 @@ jobs:
dist/*.whl
dist/*.sigstore
- name: "📦 Publish artefacts to GitHub"
# https://github.com/softprops/action-gh-release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
tag_name: ${{ github.ref_name }}
name: "Test/Development Build \
${{ github.ref_name }}"
# body_path: ${{ github.workspace }}/CHANGELOG.rst
files: |
dist/*.tar.gz
dist/*.whl
dist/*.sigstore
### PUBLISH PYPI TEST ###

testpypi:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ jobs:
echo "tarball=$(ls dist/*.tgz)" >> "$GITHUB_OUTPUT"
echo "wheel=$(ls dist/*.whl)" >> "$GITHUB_OUTPUT"
- name: "📦 Publish packages to GitHub"
uses: ModeSevenIndustrialSolutions/action-automatic-releases@latest
- name: "📦 Publish artefacts to GitHub"
# https://github.com/softprops/action-gh-release
uses: softprops/action-gh-release@v2
with:
# Valid inputs are:
# repo_token, automatic_release_tag, draft, prerelease, title, files
repo_token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
automatic_release_tag: ${{ steps.setenv.outputs.vernum }}
title: "Development Build \
tag_name: ${{ steps.setenv.outputs.vernum }}
name: "Test/Development Build \
${{ steps.setenv.outputs.vernum }}"
# body_path: ${{ github.workspace }}/CHANGELOG.rst
files: |
dist/*.tar.gz
dist/*.whl
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Temporary devops repo
.devops

# Twine temporary files
package-lock.json
package.json

# Output files from co2budget.ipynb (ITR-Examples)
OECM-images
TPI-images


# Local node cache
node_modules

Expand Down

0 comments on commit 8dfe65b

Please sign in to comment.