Supports being called by other repositories as an action

This commit is contained in:
Tw93
2025-08-23 19:26:26 +08:00
parent 5c920cbd43
commit 34a0419c83
3 changed files with 248 additions and 0 deletions

39
.github/workflows/test-action.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: 'Test Pake Action'
on:
workflow_dispatch:
inputs:
url:
description: 'URL to package'
required: true
default: 'https://weekly.tw93.fun'
name:
description: 'App name'
required: true
default: 'TestApp'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Build Pake App
id: build
uses: ./
with:
url: ${{ github.event.inputs.url }}
name: ${{ github.event.inputs.name }}
debug: true
- name: Upload Package
uses: actions/upload-artifact@v4
with:
name: pake-app
path: ${{ steps.build.outputs.package-path }}