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
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,19 @@ jobs:
--notes-file "$RUNNER_TEMP/artifacts/release-notes.md" \
--latest

- name: Upload stable website download
env:
GH_TOKEN: ${{ github.token }}
APP_VERSION: ${{ needs.verify.outputs.app_version }}
shell: bash
run: |
versioned_dmg="$RUNNER_TEMP/artifacts/$PRODUCT_NAME-$APP_VERSION-macos-universal.dmg"
stable_dmg="$RUNNER_TEMP/artifacts/$PRODUCT_NAME-macos-universal.dmg"

test -f "$versioned_dmg"
cp "$versioned_dmg" "$stable_dmg"
gh release upload "$GITHUB_REF_NAME" "$stable_dmg" --clobber

- name: Remove candidate tag
env:
GH_TOKEN: ${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center">
<img
src="./docs/assets/floatick-product-hero-v4.png"
src="./docs/assets/floatick-product-hero-v5.png"
width="100%"
alt="Floatick floating todo list, Markdown editor, tags, and settings for macOS"
/>
Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center">
<img
src="./docs/assets/floatick-product-hero-v4.png"
src="./docs/assets/floatick-product-hero-v5.png"
width="100%"
alt="Floatick macOS 悬浮待办、Markdown 编辑器、标签与设置"
/>
Expand Down
Binary file added docs/assets/floatick-product-hero-v5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/
35 changes: 35 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Floatick website

The bilingual Floatick product website is built with Astro and outputs static
HTML for Cloudflare Pages.

## Local development

```bash
npm install
npm run dev
```

Astro prints the local preview URL after startup. English is served at `/` and
Simplified Chinese at `/zh/`.

## Production build

```bash
npm run build
npm run preview
```

The static output is written to `dist/`.

## Cloudflare Pages

Deployment is intentionally deferred while the website is developed locally.
When enabled, configure Pages with:

```text
Root directory: website
Build command: npm run build
Build output directory: dist
Production branch: main
```
22 changes: 22 additions & 0 deletions website/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// @ts-check
import sitemap from '@astrojs/sitemap';
import { defineConfig } from 'astro/config';

export default defineConfig({
site: 'https://floatick.pages.dev',
output: 'static',
i18n: {
locales: [
'en',
{
path: 'zh',
codes: ['zh-CN', 'zh'],
},
],
defaultLocale: 'en',
routing: {
prefixDefaultLocale: false,
},
},
integrations: [sitemap()],
});
Loading