mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 03:39:26 +00:00
32 lines
823 B
YAML
32 lines
823 B
YAML
name: Manual Release
|
|
on:
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: write
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: npm
|
|
- name: Install deps
|
|
run: npm ci
|
|
- name: Ensure version is not already tagged
|
|
run: |
|
|
VERSION=$(node -p "require('./package.json').version")
|
|
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
|
|
echo "Tag v$VERSION already exists. Bump version first."
|
|
exit 1
|
|
fi
|
|
- name: Build + publish
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
npx electron-builder --publish always
|