Skip to content

Commit 98e5f62

Browse files
authored
Merge pull request #8 from cederache/feature/new-template
fix: remove old package.json
2 parents dc21c2c + aaaddff commit 98e5f62

2 files changed

Lines changed: 14 additions & 102 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ on:
55
types: [closed]
66
branches:
77
- master
8+
workflow_dispatch:
9+
inputs:
10+
pr:
11+
description: "PR number to build (refs/pull/N/head). Overrides ref and branch dropdown when set."
12+
required: false
13+
type: string
14+
ref:
15+
description: "Branch, tag, or full SHA (used only if pr is empty; if ref is empty too, uses the branch from Run workflow)"
16+
required: false
17+
type: string
818

919
permissions:
1020
contents: read
@@ -17,13 +27,13 @@ concurrency:
1727

1828
jobs:
1929
build:
20-
if: github.event.pull_request.merged == true
30+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
2131
runs-on: ubuntu-latest
2232
steps:
23-
- name: Checkout master
33+
- name: Checkout
2434
uses: actions/checkout@v4
2535
with:
26-
ref: master
36+
ref: ${{ github.event_name != 'workflow_dispatch' && 'master' || (github.event.inputs.pr != '' && format('refs/pull/{0}/head', github.event.inputs.pr) || (github.event.inputs.ref != '' && github.event.inputs.ref || github.ref)) }}
2737

2838
- uses: pnpm/action-setup@v4
2939
with:
@@ -47,7 +57,7 @@ jobs:
4757
path: dist
4858

4959
deploy:
50-
if: github.event.pull_request.merged == true
60+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
5161
needs: build
5262
runs-on: ubuntu-latest
5363
environment:

package.json

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)