1
0
mirror of https://github.com/drewcassidy/KSP-DepthMask synced 2024-09-01 14:54:35 +00:00

Add deployment to spacedock

tbh I forgot this mod was even on SpaceDock
This commit is contained in:
2022-11-02 22:23:57 -07:00
parent 30f898f714
commit 88b6aa0d6f
3 changed files with 23 additions and 2 deletions

View File

@ -107,12 +107,24 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
deploy/Shabby-*.zip
deploy/DepthMask-*.zip
deploy/DepthMask.version
name: DepthMask Version ${{ env.GITHUB_REF }}
body_path: RELEASE.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Spacedock
run: |
curl -F "username=drewcassidy" -F "password=${{ secrets.SPACEDOCK_PASS }}" \
-c ./cookies "https://spacedock.info/api/login"
curl -c ./cookies -b ./cookies \
-F "version=$VERSION_TITLE" \
-F "changelog=$(yaclog show -mb)" \
-F "game-version=1.12.4" \
-F "notify-followers=yes" \
-F "zipball=@deploy/DepthMask-$GITHUB_REF.zip" \
"https://spacedock.info/api/mod/2943/update"
- name: Publish to Server
run: |