|
1 | | -name: publish-to-spacedock |
2 | | - |
3 | | -on: |
4 | | - workflow_call: |
5 | | - inputs: |
6 | | - spacedock-username: |
7 | | - type: string |
8 | | - required: true |
9 | | - description: Spacedock login username |
10 | | - mod-id: |
11 | | - type: string |
12 | | - required: true |
13 | | - description: ID of the mod we are deploying. Get this from the end of your mod's spacedock URL |
14 | | - release-tag: |
15 | | - type: string |
16 | | - required: false |
17 | | - description: The tag of the release. Will be the same as `inputs.release-tag` unless it was blank. |
18 | | - game-id: |
19 | | - type: string |
20 | | - required: false |
21 | | - default: '3102' # hardcoded to KSP1 gameid. retrieve from https://spacedock.info/api/games |
22 | | - description: ID of the game we are deploying for. This should probably be left as-is for KSP 1. |
23 | | - secrets: |
24 | | - spacedock-password: |
25 | | - required: true |
26 | | - description: Spacedock login password. Store this as a secret! |
27 | | - |
28 | | -jobs: |
29 | | - publish-to-spacedock: |
30 | | - runs-on: ubuntu-22.04 |
31 | | - steps: |
32 | | - - name: get-release-info |
33 | | - id: get-release-info |
34 | | - uses: KSPModdingLibs/KSPBuildTools/.github/actions/[email protected] |
35 | | - with: |
36 | | - release-tag: ${{ inputs.release-tag }} |
37 | | - |
38 | | - - name: upload-to-spacedock |
39 | | - uses: KSP2Community/[email protected] |
40 | | - with: |
41 | | - username: ${{ inputs.spacedock-username }} |
42 | | - password: ${{ secrets.spacedock-password }} |
43 | | - game_id: ${{ inputs.game-id }} |
44 | | - mod_id: ${{ inputs.mod-id }} |
45 | | - version: ${{ steps.get-release-info.outputs.version-string }} |
46 | | - zipball: ${{ steps.get-release-info.outputs.artifact-file }} |
47 | | - changelog: ${{ steps.get-release-info.outputs.changelog-file }} |
| 1 | +name: publish-to-spacedock |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_call: |
| 5 | + inputs: |
| 6 | + spacedock-username: |
| 7 | + type: string |
| 8 | + required: true |
| 9 | + description: Spacedock login username |
| 10 | + mod-id: |
| 11 | + type: string |
| 12 | + required: true |
| 13 | + description: ID of the mod we are deploying. Get this from the end of your mod's spacedock URL |
| 14 | + release-tag: |
| 15 | + type: string |
| 16 | + required: false |
| 17 | + description: The tag of the release. Will be the same as `inputs.release-tag` unless it was blank. |
| 18 | + game-id: |
| 19 | + type: string |
| 20 | + required: false |
| 21 | + default: '3102' # hardcoded to KSP1 gameid. retrieve from https://spacedock.info/api/games |
| 22 | + description: ID of the game we are deploying for. This should probably be left as-is for KSP 1. |
| 23 | + secrets: |
| 24 | + spacedock-password: |
| 25 | + required: true |
| 26 | + description: Spacedock login password. Store this as a secret! |
| 27 | + |
| 28 | +jobs: |
| 29 | + publish-to-spacedock: |
| 30 | + runs-on: ubuntu-22.04 |
| 31 | + steps: |
| 32 | + - name: get-release-info |
| 33 | + id: get-release-info |
| 34 | + uses: KSPModdingLibs/KSPBuildTools/.github/actions/[email protected] |
| 35 | + with: |
| 36 | + release-tag: ${{ inputs.release-tag }} |
| 37 | + |
| 38 | + - name: upload-to-spacedock |
| 39 | + uses: KSP2Community/[email protected] |
| 40 | + with: |
| 41 | + username: ${{ inputs.spacedock-username }} |
| 42 | + password: ${{ secrets.spacedock-password }} |
| 43 | + game_id: ${{ inputs.game-id }} |
| 44 | + mod_id: ${{ inputs.mod-id }} |
| 45 | + version: ${{ steps.get-release-info.outputs.version-string }} |
| 46 | + zipball: ${{ steps.get-release-info.outputs.artifact-file }} |
| 47 | + changelog: ${{ steps.get-release-info.outputs.changelog-file }} |
0 commit comments