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:
|
||||
- build_and_upload_changed_packages
|
||||
name: Build Changed
|
||||
run-name: build_and_upload_changed_packages
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build_and_upload_changed_packages:
|
||||
image: python:3.9
|
||||
stage: build_and_upload_changed_packages
|
||||
script:
|
||||
- pip install -U pip
|
||||
- pip install twine build toml
|
||||
runs-on: python:3.9
|
||||
steps:
|
||||
- run: pip install -U pip
|
||||
- run: pip install twine build toml
|
||||
# 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
|
||||
if [ -d "$package_dir" ]; then
|
||||
package_name=$(basename $package_dir)
|
||||
@ -54,6 +55,3 @@ build_and_upload_changed_packages:
|
||||
fi
|
||||
fi
|
||||
done
|
||||
only:
|
||||
- pushes
|
||||
- merge_requests
|
||||
|
Loading…
Reference in New Issue
Block a user