Fix CI: drop unreachable external actions/* (data.forgejo.org timeout)
Some checks failed
Build & Release Pack / build (push) Failing after 4s
Some checks failed
Build & Release Pack / build (push) Failing after 4s
Replace actions/checkout, setup-go, upload-artifact with an inline git clone and a committed packwiz binary (tools/packwiz), so the workflow needs no outside network beyond the docker image pull and a clone from the instance itself. Release step (tag-gated) unchanged.
This commit is contained in:
parent
a354146c63
commit
063b0f3d3d
2 changed files with 5 additions and 24 deletions
|
|
@ -10,22 +10,11 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
run: git clone --branch "${GITHUB_REF_NAME}" --depth 1 "https://x-access-token:${GITHUB_TOKEN}@git.mithraic.cloud/ad3laid3/FKRPG.git" "${GITHUB_WORKSPACE}"
|
||||||
|
|
||||||
- name: Setup Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: '1.22'
|
|
||||||
|
|
||||||
- name: Install packwiz
|
|
||||||
run: go install github.com/packwiz/packwiz@latest
|
|
||||||
|
|
||||||
- name: Add packwiz to PATH
|
|
||||||
run: echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
|
|
||||||
|
|
||||||
- name: Refresh index
|
- name: Refresh index
|
||||||
working-directory: client_pack
|
working-directory: client_pack
|
||||||
run: packwiz refresh
|
run: ../tools/packwiz refresh
|
||||||
|
|
||||||
- name: Integrity check
|
- name: Integrity check
|
||||||
working-directory: client_pack
|
working-directory: client_pack
|
||||||
|
|
@ -37,11 +26,11 @@ jobs:
|
||||||
|
|
||||||
- name: Export client Modrinth pack
|
- name: Export client Modrinth pack
|
||||||
working-directory: client_pack
|
working-directory: client_pack
|
||||||
run: packwiz modrinth export -o ../FKRPG-${GITHUB_REF_NAME}.mrpack --restrictDomains=false
|
run: ../tools/packwiz modrinth export -o ../FKRPG-${GITHUB_REF_NAME}.mrpack --restrictDomains=false
|
||||||
|
|
||||||
- name: Refresh server index
|
- name: Refresh server index
|
||||||
working-directory: server_pack
|
working-directory: server_pack
|
||||||
run: packwiz refresh
|
run: ../tools/packwiz refresh
|
||||||
|
|
||||||
- name: Integrity check (server)
|
- name: Integrity check (server)
|
||||||
working-directory: server_pack
|
working-directory: server_pack
|
||||||
|
|
@ -53,15 +42,7 @@ jobs:
|
||||||
|
|
||||||
- name: Export server Modrinth pack
|
- name: Export server Modrinth pack
|
||||||
working-directory: server_pack
|
working-directory: server_pack
|
||||||
run: packwiz modrinth export -o ../FKRPG-SERVER-${GITHUB_REF_NAME}.mrpack --restrictDomains=false
|
run: ../tools/packwiz modrinth export -o ../FKRPG-SERVER-${GITHUB_REF_NAME}.mrpack --restrictDomains=false
|
||||||
|
|
||||||
- name: Upload pack artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: fkrpg-pack
|
|
||||||
path: |
|
|
||||||
FKRPG-${GITHUB_REF_NAME}.mrpack
|
|
||||||
FKRPG-SERVER-${GITHUB_REF_NAME}.mrpack
|
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
|
|
||||||
BIN
tools/packwiz
Executable file
BIN
tools/packwiz
Executable file
Binary file not shown.
Loading…
Add table
Reference in a new issue