Skip to content

Commit

Permalink
Disable Releases - Testing only2
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3-M4513R committed Jan 16, 2024
1 parent 2c82663 commit 1108323
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,27 +85,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Tag repo
id: tag
run: |
function getVer(){
IFS='=' read -ra ARR <<<$(grep $1 gradle.properties)
read -r -d '' "$1" <<< ${ARR[1]}
unset IFS
unset ARR
}
getVer MC_VERSION
echo "Got MC_VERSION: $MC_VERSION"
getVer FORGE_VERSION
echo "Got FORGE_VERSION: $FORGE_VERSION"
getVer KETTING_VERSION
echo "Got KETTING_VERSION: $KETTING_VERSION"
tag=v$MC_VERSION-$FORGE_VERSION-$KETTING_VERSION
echo "Got tag $tag"
echo "tag=$tag" >> "$GITHUB_OUTPUT"
echo "Set tag as output"
git tag $tag
echo "Created local tag"
git push origin $tag
echo "Pushed to remote"
run: bash .github/workflows/tagging.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Github Release if on default branch
Expand Down Expand Up @@ -143,6 +123,11 @@ jobs:
- name: Rename Branch, if Pull_Request
if: ${{ github.event_name == 'pull_request' }}
run: git checkout -B 'branch'
- name: Tag repo
id: tag
run: bash .github/workflows/tagging.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Java 17
uses: actions/setup-java@v3
with:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/tagging.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
getVer(){
IFS='=' read -ra ARR <<< "$(grep "$1" gradle.properties)"
read -r -d '' "$1" <<< "${ARR[1]}"
unset IFS
unset ARR
}
getVer MC_VERSION
echo "Got MC_VERSION: $MC_VERSION"
getVer FORGE_VERSION
echo "Got FORGE_VERSION: $FORGE_VERSION"
getVer KETTING_VERSION
echo "Got KETTING_VERSION: $KETTING_VERSION"
tag=v$MC_VERSION-$FORGE_VERSION-$KETTING_VERSION
echo "Got tag $tag"
#echo "tag=$tag" >> "$GITHUB_OUTPUT"
echo "Set tag as output"
#git tag "$tag"
echo "Created local tag"
#git push origin "$tag"
echo "Pushed to remote"

0 comments on commit 1108323

Please sign in to comment.