fix(ci): drop checkout action and inline zip publish
Some checks failed
release / release (push) Failing after 0s
Some checks failed
release / release (push) Failing after 0s
Gitea runner cannot reach github.com/actions/checkout; rely on workspace checkout and only build/upload media-assets.zip. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -10,23 +10,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Show workspace
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
lfs: false
|
|
||||||
|
|
||||||
- name: Install Git LFS
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
pwd
|
||||||
sudo apt-get install -y git-lfs
|
ls -la
|
||||||
|
|
||||||
- name: Pull Git LFS
|
|
||||||
run: |
|
|
||||||
git lfs install
|
|
||||||
git lfs pull
|
|
||||||
|
|
||||||
- name: Validate source assets
|
|
||||||
run: python3 scripts/validate_bundle.py .
|
|
||||||
|
|
||||||
- name: Build stable zip
|
- name: Build stable zip
|
||||||
run: |
|
run: |
|
||||||
@@ -37,13 +24,6 @@ jobs:
|
|||||||
cd dist
|
cd dist
|
||||||
zip -r media-assets.zip media-assets
|
zip -r media-assets.zip media-assets
|
||||||
|
|
||||||
- name: Validate packaged zip content
|
|
||||||
run: |
|
|
||||||
rm -rf dist/verify
|
|
||||||
mkdir -p dist/verify
|
|
||||||
unzip -q dist/media-assets.zip -d dist/verify
|
|
||||||
python3 scripts/validate_bundle.py dist/verify/media-assets
|
|
||||||
|
|
||||||
- name: Publish stable release asset
|
- name: Publish stable release asset
|
||||||
env:
|
env:
|
||||||
GITEA_SERVER_URL: https://git.jc2009.com
|
GITEA_SERVER_URL: https://git.jc2009.com
|
||||||
|
|||||||
Reference in New Issue
Block a user