mirror of
https://github.com/go-i2p/go-gitlooseleaf.git
synced 2025-07-04 18:21:42 -04:00
add node when building forgejo
This commit is contained in:
6
.github/workflows/forgejo-build.yml
vendored
6
.github/workflows/forgejo-build.yml
vendored
@ -59,6 +59,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: '1.21'
|
go-version: '1.21'
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
|
- name: Setup node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Checkout Forgejo Source
|
- name: Checkout Forgejo Source
|
||||||
run: |
|
run: |
|
||||||
|
12
.github/workflows/forgejo-nightly.yml
vendored
12
.github/workflows/forgejo-nightly.yml
vendored
@ -26,6 +26,12 @@ jobs:
|
|||||||
go-version: '1.21'
|
go-version: '1.21'
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
|
- name: Setup node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Checkout Forgejo Source
|
- name: Checkout Forgejo Source
|
||||||
run: |
|
run: |
|
||||||
git clone https://codeberg.org/forgejo/forgejo.git forgejo-source
|
git clone https://codeberg.org/forgejo/forgejo.git forgejo-source
|
||||||
@ -51,7 +57,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd forgejo-source
|
cd forgejo-source
|
||||||
ARTIFACT_NAME="forgejo-${{ runner.os }}"
|
ARTIFACT_NAME="gitea-${{ runner.os }}"
|
||||||
if [ "${{ runner.os }}" = "Windows" ]; then
|
if [ "${{ runner.os }}" = "Windows" ]; then
|
||||||
mv gitea.exe "${ARTIFACT_NAME}.exe"
|
mv gitea.exe "${ARTIFACT_NAME}.exe"
|
||||||
else
|
else
|
||||||
@ -61,9 +67,9 @@ jobs:
|
|||||||
- name: Upload Build Artifact
|
- name: Upload Build Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: forgejo-${{ runner.os }}
|
name: gitea-${{ runner.os }}
|
||||||
path: |
|
path: |
|
||||||
forgejo-source/forgejo-${{ runner.os }}*
|
forgejo-source/gitea-${{ runner.os }}*
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
Reference in New Issue
Block a user