Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
13c70ba
fix naming error
frequency403 Mar 24, 2026
01162ec
fix icon name
frequency403 Mar 24, 2026
fe3ef20
Fix startup error when files are not readable. (#18)
frequency403 Mar 24, 2026
b3e8a9c
remove warnings as error in csproj
frequency403 Mar 24, 2026
bbbe8ea
remove warnings as error in csproj
frequency403 Mar 24, 2026
f536d95
Merge branch 'master' into development
frequency403 Mar 24, 2026
e4807aa
Merge branch 'development' into release/v3.0.1
frequency403 Mar 24, 2026
d99e92f
Fix and Optimize Configuration, SSH Key Handling, and UI (#21)
frequency403 Jun 9, 2026
8ee5e98
Introduce new workflows: auto-tag refinement, unit tests, build-and-p…
frequency403 Jun 9, 2026
5fbbd39
Bump version to 3.1.0, improve PKGBUILD formatting, and fix SSH key f…
frequency403 Jun 9, 2026
cdff101
Add `build-and-package.yml` and `test.yml` workflows; refine asset pr…
frequency403 Jun 9, 2026
1431a2d
Refactor workflows: streamline asset preparation, reorganize director…
frequency403 Jun 9, 2026
638c3b8
Update `staging.yml`: adjust dependencies for `deploy-aur-nightly` an…
frequency403 Jun 9, 2026
d7f6b4b
Refactor GitHub Actions workflows: improve artifact handling and enha…
frequency403 Jun 9, 2026
ec44535
Update `staging.yml`: add `build` dependency for `deploy-aur-nightly`…
frequency403 Jun 9, 2026
08afa89
Revamp README: overhaul content structure, include new features, upda…
frequency403 Jun 9, 2026
f9f6e48
Bump version to 3.1.1; update PKGBUILD, normalize version logic in wo…
frequency403 Jun 9, 2026
107d24e
Merge branch 'master' into release/v3.1.1
frequency403 Jun 9, 2026
4a91f0a
Bump version to 3.1.2; update PKGBUILD, enhance version normalization…
frequency403 Jun 10, 2026
2ba45d1
Merge branch 'master' into release/v3.1.2
frequency403 Jun 10, 2026
75c82ec
Enhance Komac installation in workflow: dynamically fetch latest rele…
frequency403 Jun 10, 2026
2ae51bf
Refactor GitHub Actions: modularize workflows, add custom composite a…
frequency403 Jun 10, 2026
36859b5
Merge remote-tracking branch 'origin/master' into release/v3.1.3
frequency403 Jun 10, 2026
e4f25b4
Add `actions/checkout@v4` to workflows for consistent repository access.
frequency403 Jun 10, 2026
1180366
Refactor `install-komac` action: enhance reliability with `gh` CLI in…
frequency403 Jun 10, 2026
07e469a
Remove `install-komac` action, update GitHub Actions to latest versio…
frequency403 Jun 11, 2026
56c683e
Remove unused `needs: detect-tfm` property from `.github/actions/dotn…
frequency403 Jun 11, 2026
237e273
Remove nightly GitHub Release action from staging workflow
frequency403 Jun 11, 2026
c38234b
resolve warning IL3000
frequency403 Jun 11, 2026
f0c32b2
Remove nightly support and update workflows to reflect changes
frequency403 Jun 11, 2026
0ac2a6f
Update PKGBUILD to include date and commit hash in versioning
frequency403 Jun 11, 2026
d131b9b
Sync auto-tag workflow with development process:
frequency403 Jun 11, 2026
37cc849
Simplify test workflow by removing conditional triggers based on even…
frequency403 Jun 11, 2026
b13d554
Merge branch 'master' into development
frequency403 Jun 11, 2026
8afddd6
Update auto-tag workflow: Remove "Sync Development" from job name
frequency403 Jun 11, 2026
7be1315
Release v3.1.6 -Update workflows and versioning logic for improved CI…
frequency403 Jun 11, 2026
e3a39c0
Update workflows and dependencies:
frequency403 Jun 11, 2026
8e3e88c
Enhance `determine-version` action and workflows:
frequency403 Jun 11, 2026
7c01d3c
Add sparse checkout for `determine-version` action in staging workflow
frequency403 Jun 11, 2026
4518330
Disable sparse checkout cone mode in `determine-version` action
frequency403 Jun 11, 2026
4124234
Remove redundant `ref` input from `actions/checkout` in staging workflow
frequency403 Jun 11, 2026
f7c5394
Remove `fetch-depth` input from checkout step in staging workflow
frequency403 Jun 11, 2026
ed7aaaa
Simplify staging workflow by reducing inputs and removing sparse chec…
frequency403 Jun 11, 2026
aa6cb1a
..
frequency403 Jun 11, 2026
cbab03c
verion bump
frequency403 Jun 11, 2026
f715bf4
Update staging workflow to include post-process step for branch checkout
frequency403 Jun 11, 2026
11cc4fa
Update staging workflow: fix branch checkout logic in post-process step
frequency403 Jun 11, 2026
c871fed
Simplify staging workflow by removing post-process step for branch ch…
frequency403 Jun 11, 2026
663e6da
Update dependencies in staging workflow: downgrade checkout action an…
frequency403 Jun 11, 2026
9d11fc0
fix: correct AUR action parameters (commit_username → author_name, co…
frequency403 Jun 11, 2026
bc4507d
fix: add force flag and increase fetch-depth for AUR git deployment
frequency403 Jun 11, 2026
71cf2d9
fix: add force flag and revert to correct AUR action parameters
frequency403 Jun 11, 2026
a70d0b6
fix: correct AUR action to use commit_username and commit_email param…
frequency403 Jun 11, 2026
d1562a2
fix: explicitly specify master branch for AUR deployment to avoid ref…
frequency403 Jun 11, 2026
9460756
refactor: replace KSXGitHub action with custom git clone and push for…
frequency403 Jun 11, 2026
43664f5
fix: setup SSH key before cloning AUR repository
frequency403 Jun 11, 2026
ca475c2
fix: simplify AUR deployment with correct paths and environment varia…
frequency403 Jun 11, 2026
7d04c01
fix: explicitly create and switch to the master branch during AUR dep…
frequency403 Jun 11, 2026
66d0b8a
fix: ensure branch tracks origin/master during AUR deployment
frequency403 Jun 11, 2026
fc4282b
fix: include .SRCINFO generation during AUR deployment
frequency403 Jun 11, 2026
09635e9
fix: run makepkg as non-root user during AUR deployment
frequency403 Jun 11, 2026
33f87af
fix: update .SRCINFO generation command in AUR deployment
frequency403 Jun 11, 2026
a92207a
refactor: add reusable deploy-aur action and integrate with workflows
frequency403 Jun 11, 2026
06d5265
chore: bump BaseVersion to 3.1.7 in Directory.Build.props
frequency403 Jun 11, 2026
d42d753
Merge remote-tracking branch 'origin/master' into release/v3.1.7
frequency403 Jun 11, 2026
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
118 changes: 118 additions & 0 deletions .github/actions/deploy-aur/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: 'Deploy AUR Package'
description: >
Publishes a PKGBUILD to AUR. Tries KSXGitHub/github-actions-deploy-aur first,
falls back to a manual clone-and-push with .SRCINFO regeneration via Docker.

inputs:
pkgname:
description: 'AUR package name'
required: true
pkgbuild:
description: 'Path to the PKGBUILD file'
required: true
ssh_private_key:
description: 'SSH private key with AUR access'
required: true
commit_username:
description: 'Git commit username'
required: true
commit_email:
description: 'Git commit email'
required: true
commit_message:
description: 'Git commit message'
required: true
force_push:
description: 'Force push to AUR'
required: false
default: 'false'
regenerate_srcinfo:
description: 'Regenerate .SRCINFO via Docker in the manual fallback (needed for -git packages)'
required: false
default: 'false'
updpkgsums:
description: 'Run updpkgsums after copying PKGBUILD (requires pacman-contrib in the Action environment)'
required: false
default: 'false'

runs:
using: composite
steps:
- name: Deploy via AUR Action (primary)
id: aur_action
continue-on-error: true
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
with:
pkgname: ${{ inputs.pkgname }}
pkgbuild: ${{ inputs.pkgbuild }}
commit_username: ${{ inputs.commit_username }}
commit_email: ${{ inputs.commit_email }}
ssh_private_key: ${{ inputs.ssh_private_key }}
commit_message: ${{ inputs.commit_message }}
force_push: ${{ inputs.force_push }}
ssh_keyscan_types: rsa,ecdsa,ed25519
updpkgsums: ${{ inputs.updpkgsums }}

- name: Setup SSH key for fallback
if: steps.aur_action.outcome == 'failure'
shell: bash
run: |
mkdir -p ~/.ssh
echo "${{ inputs.ssh_private_key }}" > ~/.ssh/aur_key
chmod 600 ~/.ssh/aur_key
cat >> ~/.ssh/config << 'EOF'
Host aur.archlinux.org
IdentityFile ~/.ssh/aur_key
User aur
StrictHostKeyChecking no
EOF

- name: Deploy via manual push (fallback)
id: aur_manual
continue-on-error: true
if: steps.aur_action.outcome == 'failure'
shell: bash
run: |
set -euo pipefail
echo "::warning::AUR Action failed, falling back to manual push"

PKGBUILD_DIR="$(dirname "${{ inputs.pkgbuild }}")"

cd /tmp
rm -rf aur-deploy
mkdir aur-deploy
cd aur-deploy
git clone ssh://aur@aur.archlinux.org/${{ inputs.pkgname }}.git .
git checkout -B master origin/master

cp "$GITHUB_WORKSPACE/${{ inputs.pkgbuild }}" ./PKGBUILD

if [[ "${{ inputs.regenerate_srcinfo }}" == "true" ]]; then
docker run --rm -v "$(pwd)":/pkg archlinux:latest \
bash -c "useradd -m builder \
&& cp /pkg/PKGBUILD /home/builder/ \
&& su builder -c 'cd /home/builder && makepkg --printsrcinfo >> /pkg/.SRCINFO'"
fi

git config user.name "${{ inputs.commit_username }}"
git config user.email "${{ inputs.commit_email }}"

git add PKGBUILD
if [[ "${{ inputs.regenerate_srcinfo }}" == "true" ]]; then
git add .SRCINFO
fi

git commit -m "${{ inputs.commit_message }}" || true

if [[ "${{ inputs.force_push }}" == "true" ]]; then
git push origin master --force
else
git push origin master
fi

- name: Verify deployment succeeded
if: steps.aur_action.outcome == 'failure' && steps.aur_manual.outcome == 'failure'
shell: bash
run: |
echo "::error::Both deployment paths failed for ${{ inputs.pkgname }}"
exit 1
20 changes: 16 additions & 4 deletions .github/actions/determine-version/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: Determine Version
description: Extract and validate a semantic version from Directory.Build.props and optionally validate against a branch or tag name

inputs:
file-name:
description: The filename where the dotnet msbuild command can extract the version. Provide the full path from repo root!
required: false
default: 'Directory.Build.props'

property:
description: The property where the dotnet msbuild command must look for the verison
required: false
default: 'BaseVersion'


outputs:
version:
description: Extracted semantic version without leading v
Expand All @@ -19,22 +31,22 @@ runs:
run: |
set -euo pipefail

FILE="Directory.Build.props"
FILE="${{ inputs.file-name }}"

if [[ ! -f "$FILE" ]]; then
echo "::error::$FILE not found"
exit 1
fi

VERSION="$(dotnet msbuild "$FILE" -nologo -getProperty:BaseVersion | tr -d '\r')"
VERSION="$(dotnet msbuild "$FILE" -nologo -getProperty:${{ inputs.property }} | tr -d '\r')"

if [[ -z "$VERSION" ]]; then
echo "::error::BaseVersion not found in $FILE"
echo "::error::${{ inputs.property }} not found in $FILE"
exit 1
fi

if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "::error::Invalid BaseVersion: $VERSION"
echo "::error::Invalid Property ${{ inputs.property }}: $VERSION"
exit 1
fi

Expand Down
20 changes: 2 additions & 18 deletions .github/actions/dotnet-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ description: >
Checks out the repository, auto-detects the TargetFramework from
Directory.Build.props, sets up the .NET SDK, and restores the NuGet cache.

inputs:
fetch-depth:
description: 'Number of commits to fetch (0 = full history, 1 = shallow)'
required: false
default: '1'
token:
description: 'GitHub token used for checkout'
required: false
default: ${{ github.token }}

outputs:
dotnet-version:
description: 'Resolved .NET version string, e.g. "10.0.x"'
Expand All @@ -21,12 +11,6 @@ outputs:
runs:
using: composite
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: ${{ inputs.fetch-depth }}
token: ${{ inputs.token }}

- name: Detect TargetFramework from Directory.Build.props
id: detect-tfm
shell: bash
Expand All @@ -46,12 +30,12 @@ runs:
echo "::notice::Resolved .NET version: ${TFM}.x"

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ steps.detect-tfm.outputs.version }}

- name: Restore NuGet cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/Directory.Packages.props', '**/Directory.Build.props') }}
Expand Down
37 changes: 0 additions & 37 deletions .github/actions/install-komac/action.yml

This file was deleted.

40 changes: 13 additions & 27 deletions .github/workflows/auto-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ name: Auto-Tag on Release Merge

on:
pull_request:
types: [ closed ]
types: [closed]
branches:
- master
- main

permissions:
contents: write
pull-requests: write

concurrency:
group: auto-tag-${{ github.ref }}
group: auto-tag-${{ github.event.pull_request.base.ref }}
cancel-in-progress: false

jobs:
Expand All @@ -23,34 +22,21 @@ jobs:
timeout-minutes: 10

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout merge commit
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.merge_commit_sha }}
token: ${{ secrets.PAT_TOKEN }}

- name: Extract and validate version
id: version
uses: ./.github/actions/determine-version

- name: Check if tag already exists
id: check
run: |
set -euo pipefail
if git rev-parse "refs/tags/${{ steps.version.outputs.tag }}" >/dev/null 2>&1; then
echo "exists=true" >> "$GITHUB_OUTPUT"
echo "::warning::Tag ${{ steps.version.outputs.tag }} already exists, skipping."
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi

- name: Create and push tag
if: steps.check.outputs.exists == 'false'
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a "${{ steps.version.outputs.tag }}" \
-m "Release ${{ steps.version.outputs.version }}"
git push origin "${{ steps.version.outputs.tag }}"
echo "::notice::Tag ${{ steps.version.outputs.tag }} pushed successfully."

- name: Create Tag Action
id: create_tag_action
uses: rickstaa/action-create-tag@v1
with:
commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
github_token: ${{ secrets.PAT_TOKEN }}
tag: ${{ steps.version.outputs.tag }}
12 changes: 6 additions & 6 deletions .github/workflows/build-and-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false # One failing target must not kill the others
fail-fast: true # One failing target must kill the others
matrix:
include:
- target: linux-x64
Expand All @@ -33,7 +33,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup .NET environment
uses: ./.github/actions/dotnet-setup
Expand Down Expand Up @@ -88,30 +88,30 @@ jobs:

- name: Upload AppImage
if: matrix.target == 'linux-x64'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: ${{ steps.appimage.outputs.appimage-name }}
path: ${{ steps.appimage.outputs.appimage-name }}
if-no-files-found: error

- name: Upload .desktop file
if: matrix.target == 'linux-x64'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: io.github.frequency403.openssh_gui.desktop
path: AppDir/usr/share/applications/io.github.frequency403.openssh_gui.desktop
if-no-files-found: error

- name: Upload app icon
if: matrix.target == 'linux-x64'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: appicon
path: AppDir/appicon.png
if-no-files-found: error

- name: Upload platform binary
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: ${{ steps.rename.outputs.ASSET_NAME }}
path: ./publish/${{ steps.rename.outputs.ASSET_NAME }}
Expand Down
Loading
Loading