change build script to gitea syntax?
Some checks reported warnings
Build Changed / build_and_upload_changed_packages (push) Has been cancelled
Some checks reported warnings
Build Changed / build_and_upload_changed_packages (push) Has been cancelled
This commit is contained in:
parent
970787d52d
commit
626a65668f
@ -1,17 +1,18 @@
|
|||||||
stages:
|
name: Build Changed
|
||||||
- build_and_upload_changed_packages
|
run-name: build_and_upload_changed_packages
|
||||||
|
on: push
|
||||||
|
|
||||||
build_and_upload_changed_packages:
|
jobs:
|
||||||
image: python:3.9
|
build_and_upload_changed_packages:
|
||||||
stage: build_and_upload_changed_packages
|
runs-on: python:3.9
|
||||||
script:
|
steps:
|
||||||
- pip install -U pip
|
- run: pip install -U pip
|
||||||
- pip install twine build toml
|
- run: pip install twine build toml
|
||||||
# Determine the list of changed files using git
|
# Determine the list of changed files using git
|
||||||
- git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA > changed_files.txt
|
- run: git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA > changed_files.txt
|
||||||
|
|
||||||
# Loop through each package directory, check if version has changed, build if changed, and then upload
|
- name: Loop through each package directory, check if version has changed, build if changed, and then upload
|
||||||
- |
|
run: |
|
||||||
for package_dir in ./*; do
|
for package_dir in ./*; do
|
||||||
if [ -d "$package_dir" ]; then
|
if [ -d "$package_dir" ]; then
|
||||||
package_name=$(basename $package_dir)
|
package_name=$(basename $package_dir)
|
||||||
@ -54,6 +55,3 @@ build_and_upload_changed_packages:
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
only:
|
|
||||||
- pushes
|
|
||||||
- merge_requests
|
|
||||||
|
Loading…
Reference in New Issue
Block a user