From a57d32474f203516a7c6b799d7bdd5bff653c3f5 Mon Sep 17 00:00:00 2001 From: Manuel Riezebosch Date: Mon, 21 Oct 2024 19:22:51 +0200 Subject: [PATCH] feat(html): smooth edges --- .github/workflows/choco.yml | 17 +++++++++++------ .github/workflows/deploy.yml | 24 ------------------------ .github/workflows/go.yml | 18 ------------------ html/index.html | 5 +++++ 4 files changed, 16 insertions(+), 48 deletions(-) delete mode 100644 .github/workflows/deploy.yml delete mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/choco.yml b/.github/workflows/choco.yml index 3fe2f32..2ccc2b3 100644 --- a/.github/workflows/choco.yml +++ b/.github/workflows/choco.yml @@ -1,21 +1,26 @@ on: - release: - types: [published] + workflow_run: + workflows: [release] + types: + - completed name: choco jobs: deploy: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - - name: download - run: | - ${{ github.event.release }} | jq '.assets[] | select(.name=="gitviz_windows_amd64.exe").browser_download_url' | xargs curl -O --output-dir dist + - uses: dawidd6/action-download-artifact@v2 + with: + name: dist + path: distecho + run_id: ${{ github.event.workflow_run.id }} - name: hash run: | shasum -a 256 dist/gitviz_windows_amd64.exe | head -c 40 >> ./choco/tools/LICENSE.txt - id: version - run: echo "::set-output name=version::$($env:GITHUB_REF.Substring(11))" + run: echo "::set-output name=version::$(echo ${{ github.event.workflow_run.ref_name }} | cut -c -2)" - name: choco pack uses: crazy-max/ghaction-chocolatey@v1 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index d6a446a..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: release -on: - push: - tags: - - v* - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: 1.20.x - - - name: build - run: | - go install github.com/mitchellh/gox@latest - gox -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" -os "linux windows darwin" -arch "arm64 amd64 aarch64" - - - name: release - uses: softprops/action-gh-release@v1 - with: - files: ./dist/* diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 4c8572e..0000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,18 +0,0 @@ -on: [push, pull_request] -name: test -jobs: - test: - strategy: - matrix: - go-version: [1.20.x] - platform: [ubuntu-latest, macos-latest, windows-latest] - runs-on: ${{ matrix.platform }} - steps: - - uses: actions/setup-go@v4 - with: - go-version: ${{ matrix.go-version }} - - uses: actions/checkout@v3 - with: - fetch-depth: 0 # using this repository history also for testing - - name: test - run: go test -v diff --git a/html/index.html b/html/index.html index 144222b..662e779 100644 --- a/html/index.html +++ b/html/index.html @@ -217,6 +217,11 @@ enabled: true, scaleFactor: 0.5 } + }, + smooth: { + type: 'cubicBezier', + roundness: 0.4, + forceDirection: 'horizontal' } }, nodes: {