Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ on:

permissions:
contents: write
id-token: write

jobs:
build:
name: Build ${{ matrix.name }}
runs-on: ${{ matrix.os }}
environment: release-signing
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -58,6 +60,33 @@ jobs:
if: runner.os == 'Windows'
run: pyinstaller --noconfirm --clean --onefile --name dataplicity --workpath pyinstaller-build --distpath pyinstaller-dist dataplicity_cli/__main__.py

- name: Setup .NET for Artifact Signing
if: runner.os == 'Windows'
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

- name: Azure login for Artifact Signing
if: runner.os == 'Windows'
uses: azure/login@v3
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}

- name: Sign Windows executable
if: runner.os == 'Windows'
uses: azure/artifact-signing-action@v2
with:
endpoint: ${{ vars.AZURE_ARTIFACT_SIGNING_ENDPOINT }}
signing-account-name: ${{ vars.AZURE_ARTIFACT_SIGNING_ACCOUNT }}
certificate-profile-name: ${{ vars.AZURE_ARTIFACT_SIGNING_PROFILE }}
files-folder: ${{ github.workspace }}\pyinstaller-dist
files-folder-filter: exe
file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256

- name: Build macOS tarball (for Homebrew)
if: runner.os == 'macOS'
shell: bash
Expand Down Expand Up @@ -94,6 +123,19 @@ jobs:
run: |
./build/windows/build_msi.ps1 -Version "${env:VERSION}"

- name: Sign Windows MSI
if: runner.os == 'Windows'
uses: azure/artifact-signing-action@v2
with:
endpoint: ${{ vars.AZURE_ARTIFACT_SIGNING_ENDPOINT }}
signing-account-name: ${{ vars.AZURE_ARTIFACT_SIGNING_ACCOUNT }}
certificate-profile-name: ${{ vars.AZURE_ARTIFACT_SIGNING_PROFILE }}
files-folder: ${{ github.workspace }}\dist
files-folder-filter: msi
file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256

- name: Stage Windows release artifacts
if: runner.os == 'Windows'
shell: pwsh
Expand Down
2 changes: 1 addition & 1 deletion dataplicity_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__all__ = ["__version__"]

__version__ = "0.1.6"
__version__ = "0.1.7"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "dataplicity-cli"
version = "0.1.6"
version = "0.1.7"
description = "Dataplicity command line interface"
readme = "README.md"
requires-python = ">=3.9"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli_ux_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_logging_path_map_help_snapshot(self) -> None:
def test_version_flag_snapshot(self) -> None:
result = self._invoke(["--version"])
self.assertEqual(result.exit_code, 0, msg=result.output)
self.assertEqual(result.output.strip(), "dataplicity-cli 0.1.6")
self.assertEqual(result.output.strip(), "dataplicity-cli 0.1.7")

def test_auth_required_message_snapshot_json(self) -> None:
with tempfile.TemporaryDirectory() as temp_dir:
Expand Down
Loading