Compare commits

...

5 Commits

View File

@ -25,7 +25,7 @@ jobs:
- name: Generate Version Info - name: Generate Version Info
run: | run: |
echo "VERSION_TITLE=$(yaclog show -n)" >> $GITHUB_ENV yaclog show
python Scripts/version.py python Scripts/version.py
yaclog-ksp -n "Conformal Decals" yaclog-ksp -n "Conformal Decals"
@ -99,11 +99,17 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install yaclog python -m pip install yaclog
- name: Get version name and body
run: |
echo "VERSION_TITLE=$(yaclog show -n)" >> $GITHUB_ENV
yaclog show
- name: Download Build Artifacts - name: Download Build Artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
- name: Zip Download Packages - name: Zip Download Packages
run: | run: |
set -u
mkdir bundled mkdir bundled
mkdir unbundled mkdir unbundled
zip -r bundled/ConformalDecals-$VERSION_TITLE.zip ConformalDecals/* zip -r bundled/ConformalDecals-$VERSION_TITLE.zip ConformalDecals/*
@ -112,21 +118,23 @@ jobs:
- name: Publish to Spacedock - name: Publish to Spacedock
run: | run: |
set -u
curl -F "username=drewcassidy" -F "password=${{ secrets.SPACEDOCK_PASS }}" \ curl -F "username=drewcassidy" -F "password=${{ secrets.SPACEDOCK_PASS }}" \
-c ./cookies "https://spacedock.info/api/login" -c ./cookies "https://spacedock.info/api/login"
curl -c ./cookies -b ./cookies \ curl -c ./cookies -b ./cookies \
-F "version=$VERSION_TITLE" \ -F "version=$VERSION_TITLE" \
-F "changelog=$(yaclog show -mb)" \ -F "changelog=$(yaclog show -mb)" \
-F "game-version=1.12.3" \ -F "game-version=1.12.5" \
-F "notify-followers=yes" \ -F "notify-followers=yes" \
-F "zipball=@bundled/ConformalDecals-$VERSION_TITLE.zip" \ -F "zipball=@bundled/ConformalDecals-$VERSION_TITLE.zip" \
"https://spacedock.info/api/mod/2451/update" "https://spacedock.info/api/mod/2451/update"
- name: Publish to Github - name: Publish to Github
run: | run: |
set -u
gh release create ${{ github.ref_name }} \ gh release create ${{ github.ref_name }} \
--notes "$(yaclog show -mb)" \ --notes "$(yaclog show -mb)" \
--title "Version $(yaclog show -n)" \ --title "Conformal Decals $VERSION_TITLE" \
bundled/ConformalDecals-*.zip \ bundled/ConformalDecals-*.zip \
ConformalDecals/GameData/ConformalDecals/Versioning/ConformalDecals.version ConformalDecals/GameData/ConformalDecals/Versioning/ConformalDecals.version