Automagically tag shit
All checks were successful
Release Workflow / release (push) Successful in 7s
All checks were successful
Release Workflow / release (push) Successful in 7s
This commit is contained in:
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
@@ -13,9 +13,35 @@ jobs:
|
||||
- name: Install zip
|
||||
run: sudo apt-get install zip
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config --global user.name "Git Admin"
|
||||
git config --global user.email "gitadmin@quack-lab.dev"
|
||||
|
||||
- name: Run deploy script
|
||||
run: bash deploy.sh
|
||||
|
||||
- name: Check for Existing Release Commit
|
||||
id: check_release_commit
|
||||
run: |
|
||||
# Check if the latest commit is a release commit
|
||||
if git log -1 --pretty=%B | grep -q "Release"; then
|
||||
echo "Release commit found. Skipping version bump."
|
||||
echo "::set-output name=release_commit::true"
|
||||
else
|
||||
echo "No release commit found. Proceeding with version bump."
|
||||
echo "::set-output name=release_commit::false"
|
||||
fi
|
||||
|
||||
- name: Run Release Script
|
||||
if: steps.check_release_commit.outputs.release_commit == 'false'
|
||||
run: bash release.sh
|
||||
|
||||
- name: Push Changes
|
||||
if: steps.check_release_commit.outputs.release_commit == 'false'
|
||||
run: |
|
||||
git push origin HEAD:refs/heads/master --tags
|
||||
|
||||
- name: Determine Tag
|
||||
id: determine_tag
|
||||
run: |
|
||||
@@ -57,5 +83,6 @@ jobs:
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.JEBENI_TOKEN }}" \
|
||||
-H "Content-Type: application/zip" \
|
||||
-H "Content-Disposition: attachment; filename=Heimdall.zip" \
|
||||
--data-binary @Heimdall.zip \
|
||||
http://srv-captain--git:3000/api/v1/repos/dave/wow-Heimdall/releases/${RELEASE_ID}/assets
|
||||
|
||||
Reference in New Issue
Block a user