ci: remove pages workflow, fix release version-bump for astro site

This commit is contained in:
Christian Visintin
2026-06-07 22:32:31 +02:00
parent d7b7ab7fa1
commit 6cf5bf18cf
5 changed files with 6 additions and 61 deletions

View File

@@ -62,9 +62,6 @@ jobs:
retention-days: 1
if-no-files-found: error
- name: Rebuild site CSS
run: npx tailwindcss@3 -i site/input.css -o site/output.css --minify
- name: Show diff (dry run)
if: ${{ inputs.dry_run }}
run: git --no-pager diff
@@ -245,7 +242,7 @@ jobs:
cat > tap/Formula/termscp.rb <<EOF
class Termscp < Formula
desc "A feature rich terminal file transfer and explorer with support for SCP/SFTP/FTP/S3/Kube/SMB/WebDAV"
homepage "https://termscp.veeso.dev/"
homepage "https://termscp.rs/"
license "MIT"
version "$VERSION"

View File

@@ -1,46 +0,0 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
paths:
- ".github/workflows/website.yml"
- "site/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- name: Setup Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
path: "./site/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

View File

@@ -19,15 +19,8 @@ sedi "s/^TERMSCP_VERSION=\"[0-9][0-9A-Za-z.\\-]*\"/TERMSCP_VERSION=\"$VERSION\"/
# README.md — version + release date
sedi "s/Current version: [0-9][0-9A-Za-z.\\-]* [0-9]{4}-[0-9]{2}-[0-9]{2}/Current version: $VERSION $DATE/" "$ROOT/README.md"
# site: home.html + every lang json — "termscp X is NOW out"
sedi "s/termscp [0-9][0-9A-Za-z.\\-]* is NOW out/termscp $VERSION is NOW out/g" "$ROOT/site/html/home.html"
for f in "$ROOT"/site/lang/*.json; do
sedi "s/termscp [0-9][0-9A-Za-z.\\-]* is NOW out/termscp $VERSION is NOW out/g" "$f"
done
# site/get-started.html — nupkg + deb download URLs
sedi "s/termscp\\.[0-9][0-9A-Za-z.\\-]*\\.nupkg/termscp.$VERSION.nupkg/g" "$ROOT/site/html/get-started.html"
sedi "s/termscp_[0-9][0-9A-Za-z.\\-]*_amd64\\.deb/termscp_${VERSION}_amd64.deb/g" "$ROOT/site/html/get-started.html"
# site: version constant displayed on the website
sedi "s/^export const VERSION = \"[0-9][0-9A-Za-z.\\-]*\";/export const VERSION = \"$VERSION\";/m" "$ROOT/site/src/consts.ts"
# chocolatey nuspec
sedi "s#<version>[0-9][0-9A-Za-z.\\-]*</version>#<version>$VERSION</version>#" "$ROOT/dist/chocolatey/termscp.nuspec"

View File

@@ -1,5 +1,5 @@
---
import { DOCS_URL, GITHUB_URL } from "../consts";
import { DOCS_URL, GITHUB_URL, VERSION } from "../consts";
const year = new Date().getFullYear();
---
<footer class="mt-auto border-t border-line bg-mantle">
@@ -9,6 +9,6 @@ const year = new Date().getFullYear();
<a href="https://crates.io/crates/termscp" class="hover:text-text">crates.io</a>
<a href={DOCS_URL} class="hover:text-text">User manual</a>
</div>
<p>© {year} Christian Visintin · Released under the MIT license.</p>
<p>termscp v{VERSION} · © {year} Christian Visintin · Released under the MIT license.</p>
</div>
</footer>

View File

@@ -1,2 +1,3 @@
export const DOCS_URL = "https://docs.termscp.rs";
export const GITHUB_URL = "https://github.com/veeso/termscp";
export const VERSION = "1.0.0";