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: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,14 @@ jobs:
echo '```'
} > release_body.md

- name: Publish release
# Immutable-release repos forbid adding assets to an already-published
# release, and action-gh-release publishes before uploading the assets.
# Create the release as a draft (assets allowed), then promote it to a
# published release in the next step.
- name: Create draft release with assets
uses: softprops/action-gh-release@v2.6.2
with:
draft: false
draft: true
prerelease: ${{ contains(github.ref_name, '-') }}
generate_release_notes: true
name: ${{ github.ref_name }}
Expand All @@ -215,3 +219,8 @@ jobs:
files: dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Promote draft to published release
run: gh release edit "${GITHUB_REF_NAME}" --draft=false --repo "${GITHUB_REPOSITORY}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion packages/desktop/electron.vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { resolve, dirname } from 'path'
import type { PluginOption } from 'vite'
import { defineConfig } from 'electron-vite'
import vue from '@vitejs/plugin-vue'
import svgLoader from 'vite-svg-loader'
Expand Down Expand Up @@ -94,7 +95,7 @@ export default defineConfig({
}
}
},
plugins: [vue(), svgLoader()],
plugins: [vue(), svgLoader()] as PluginOption[],
css: {
postcss: {
plugins: [
Expand Down
4 changes: 2 additions & 2 deletions packages/website/content/docs/dev/RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Releasing MarkText

The release pipeline is triggered by pushing a `v*` tag. The `Release MarkText` workflow (`.github/workflows/release.yml`) then runs **validate → build (4-platform matrix) → publish** and creates a GitHub Release with installers and `SHA256SUMS.txt`.
The release pipeline is triggered by pushing a `v*` tag. The `Release MarkText` workflow (`.github/workflows/release.yml`) then runs **validate → build (5-platform matrix) → publish** and creates a GitHub Release with installers and `SHA256SUMS.txt`.

The flow below covers both release candidates and stable releases — same steps, only the version string differs.

Expand Down Expand Up @@ -63,7 +63,7 @@ gh run list --workflow=release.yml --limit 3
gh run watch <run-id> --exit-status
```

Approximate timing: validate ~30 s · build matrix ~15–30 min (4 platforms in parallel) · publish ~1 min.
Approximate timing: validate ~30 s · build matrix ~15–30 min (5 platforms in parallel) · publish ~1 min.

## 7. Verify the published release

Expand Down
Loading