Update scripts and CD in order to include the wiki artifact in the release
This commit is contained in:
parent
2bbc7cdc42
commit
f1834f83dc
2 changed files with 26 additions and 1 deletions
|
|
@ -5,6 +5,8 @@ jobs:
|
|||
create-draft-release:
|
||||
name: "Create Draft Release"
|
||||
runs-on: act
|
||||
outputs:
|
||||
version: ${{steps.version.outputs.version}}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -42,3 +44,26 @@ jobs:
|
|||
env:
|
||||
TAG: "v${{steps.version.outputs.version}}"
|
||||
CDN_URL: "${{vars.CDN_URL}}"
|
||||
|
||||
wiki-release-artifact:
|
||||
name: "Add Wiki to Release"
|
||||
runs-on: act
|
||||
needs:
|
||||
- create-draft-release
|
||||
steps:
|
||||
- name: "Clone wiki repo"
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: "${{forgejo.repository}}.wiki"
|
||||
path: "wiki"
|
||||
|
||||
- name: "Remove git folder"
|
||||
run: "rm -rf wiki/.git"
|
||||
|
||||
- name: "Compress wiki folder"
|
||||
run: "cd wiki && zip -r wiki.zip **/*"
|
||||
|
||||
- name: "Upload wiki archive"
|
||||
run: "node scripts/src/addWikiArtifactToRelease.mjs"
|
||||
env:
|
||||
TAG: "v${{needs.create-draft-release.outputs.version}}"
|
||||
|
|
|
|||
2
scripts
2
scripts
|
|
@ -1 +1 @@
|
|||
Subproject commit 61e589112a6cfcb603ed69792960d952f89b3181
|
||||
Subproject commit dbfb3684b9d2f268f2a7ad45f75109899d4c2f45
|
||||
Loading…
Add table
Add a link
Reference in a new issue