Skip to content

Commit cd55676

Browse files
committed
update actions and add release mini script
1 parent f06f368 commit cd55676

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,13 @@ jobs:
100100
run: |
101101
ls -la
102102
for artifact in *; do
103+
unzip -d fd_lib $artifact
103104
docker run --rm \
104105
--user $(id -u) \
105106
--volume ${{ github.workspace }}:/deken \
106107
registry.git.iem.at/pd/deken \
107-
deken package --name --version "${{ github.ref_name }}" fd_lib
108+
deken package --name fd_lib --version "${{ github.ref_name }}" fd_lib
109+
rm -rf fd_lib
108110
done
109111
110112
- name: Upload all to deken

scripts/release.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
#
3+
# release the library to deken
4+
#
5+
#
6+
VERSION="v$(grep version README.txt | cut -f 2 -d: | sed 's/ //')"
7+
TAGS=$(git tag -l)
8+
for tag in ${TAGS}; do
9+
if [[ $VERSION == $tag ]]; then
10+
echo "Version $tag already exists. Increment version."
11+
exit 1
12+
fi
13+
done
14+
echo "Releasing tag $VERSION"
15+
git tag $VERSION -m "Release $VERSION"
16+
git push origin tag $VERSION

0 commit comments

Comments
 (0)