mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Automatically fast-forward the release branch on release
This commit is contained in:
parent
d1f3d1fa55
commit
ff262d55c8
22
.github/workflows/ff-release.yml
vendored
Normal file
22
.github/workflows/ff-release.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: Fast-Forward Release Branch
|
||||||
|
on: [ release ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
fast-forward:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: release
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Merge into Release
|
||||||
|
run: |
|
||||||
|
git merge ${{github.ref_name}} --ff-only
|
||||||
|
|
||||||
|
- name: Push Changes
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
branch: release
|
33
.github/workflows/ksp-publish.yml
vendored
33
.github/workflows/ksp-publish.yml
vendored
@ -1,5 +1,4 @@
|
|||||||
|
name: Build and Release
|
||||||
name: build
|
|
||||||
on: [ push ]
|
on: [ push ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -9,16 +8,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Setup .NET Core SDK
|
- name: Setup .NET Core SDK
|
||||||
uses: actions/setup-dotnet@v1.7.2
|
uses: actions/setup-dotnet@v1.7.2
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '6.0.x'
|
||||||
|
|
||||||
- name: Install Python Tools
|
- name: Install Python Tools
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
@ -29,7 +28,7 @@ jobs:
|
|||||||
echo "VERSION_TITLE=$(yaclog show -n)" >> $GITHUB_ENV
|
echo "VERSION_TITLE=$(yaclog show -n)" >> $GITHUB_ENV
|
||||||
python Scripts/version.py
|
python Scripts/version.py
|
||||||
yaclog-ksp -n "Conformal Decals"
|
yaclog-ksp -n "Conformal Decals"
|
||||||
|
|
||||||
- name: Validate Version Info
|
- name: Validate Version Info
|
||||||
uses: DasSkelett/AVC-VersionFileValidator@master
|
uses: DasSkelett/AVC-VersionFileValidator@master
|
||||||
|
|
||||||
@ -39,13 +38,13 @@ jobs:
|
|||||||
wget --user drewcassidy --password ${{ secrets.PILE_OF_ROCKS_PASS }} https://pileof.rocks/Secret/conformal-decals-dependencies-1.zip
|
wget --user drewcassidy --password ${{ secrets.PILE_OF_ROCKS_PASS }} https://pileof.rocks/Secret/conformal-decals-dependencies-1.zip
|
||||||
unzip conformal-decals-dependencies-*.zip -d ConformalDecals/dlls
|
unzip conformal-decals-dependencies-*.zip -d ConformalDecals/dlls
|
||||||
dotnet build --configuration Release ConformalDecals.sln
|
dotnet build --configuration Release ConformalDecals.sln
|
||||||
|
|
||||||
- name: Build DLL
|
- name: Build DLL
|
||||||
working-directory: Source
|
working-directory: Source
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ../GameData/ConformalDecals/Plugins
|
mkdir -p ../GameData/ConformalDecals/Plugins
|
||||||
dotnet build --configuration Release ConformalDecals.sln
|
dotnet build --configuration Release ConformalDecals.sln
|
||||||
|
|
||||||
- name: Download KSP Dependencies
|
- name: Download KSP Dependencies
|
||||||
run: |
|
run: |
|
||||||
wget http://pileof.rocks/KSP/Shabby_v0.2.0.zip
|
wget http://pileof.rocks/KSP/Shabby_v0.2.0.zip
|
||||||
@ -56,7 +55,7 @@ jobs:
|
|||||||
mv Shabby/GameData/Shabby GameData/
|
mv Shabby/GameData/Shabby GameData/
|
||||||
mv ModuleManager*.dll GameData/
|
mv ModuleManager*.dll GameData/
|
||||||
mv B9PartSwitch/GameData/B9PartSwitch GameData/
|
mv B9PartSwitch/GameData/B9PartSwitch GameData/
|
||||||
|
|
||||||
- name: Upload Unbundled Build
|
- name: Upload Unbundled Build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
@ -67,7 +66,7 @@ jobs:
|
|||||||
CHANGELOG.md
|
CHANGELOG.md
|
||||||
LICENSE-ART.md
|
LICENSE-ART.md
|
||||||
LICENSE-SOURCE.md
|
LICENSE-SOURCE.md
|
||||||
|
|
||||||
- name: Upload Bundled Build
|
- name: Upload Bundled Build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
@ -78,8 +77,8 @@ jobs:
|
|||||||
CHANGELOG.md
|
CHANGELOG.md
|
||||||
LICENSE-ART.md
|
LICENSE-ART.md
|
||||||
LICENSE-SOURCE.md
|
LICENSE-SOURCE.md
|
||||||
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -97,15 +96,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
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
|
- name: Get version name and body
|
||||||
run: |
|
run: |
|
||||||
echo "VERSION_TITLE=$(yaclog show -n)" >> $GITHUB_ENV
|
echo "VERSION_TITLE=$(yaclog show -n)" >> $GITHUB_ENV
|
||||||
echo "$(yaclog show -mb)" >> RELEASE.md
|
echo "$(yaclog show -mb)" >> RELEASE.md
|
||||||
|
|
||||||
- name: Download Build Artifacts
|
- name: Download Build Artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
|
||||||
- name: Zip Download Packages
|
- name: Zip Download Packages
|
||||||
run: |
|
run: |
|
||||||
mkdir bundled
|
mkdir bundled
|
||||||
@ -125,7 +124,7 @@ jobs:
|
|||||||
-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
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user