mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Update github actions workflow
This commit is contained in:
parent
8e0a26f17c
commit
44a5aec21e
42
.github/workflows/ksp-publish.yml
vendored
42
.github/workflows/ksp-publish.yml
vendored
@ -6,15 +6,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.12'
|
||||||
|
|
||||||
- name: Setup .NET Core SDK
|
- name: Setup .NET Core SDK
|
||||||
uses: actions/setup-dotnet@v1.7.2
|
uses: actions/setup-dotnet@v4.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '6.0.x'
|
||||||
|
|
||||||
@ -59,22 +59,22 @@ jobs:
|
|||||||
mv HarmonyKSP/GameData/000_Harmony GameData/
|
mv HarmonyKSP/GameData/000_Harmony GameData/
|
||||||
|
|
||||||
- name: Upload Unbundled Build
|
- name: Upload Unbundled Build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ConformalDecals-unbundled
|
name: ConformalDecals-unbundled
|
||||||
path: |
|
path: |
|
||||||
GameData/ConformalDecals
|
GameData/ConformalDecals/
|
||||||
README.md
|
README.md
|
||||||
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@v4
|
||||||
with:
|
with:
|
||||||
name: ConformalDecals
|
name: ConformalDecals
|
||||||
path: |
|
path: |
|
||||||
GameData
|
GameData/
|
||||||
README.md
|
README.md
|
||||||
CHANGELOG.md
|
CHANGELOG.md
|
||||||
LICENSE-ART.md
|
LICENSE-ART.md
|
||||||
@ -87,23 +87,18 @@ jobs:
|
|||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.12'
|
||||||
|
|
||||||
- name: Install Python Tools
|
- name: Install Python Tools
|
||||||
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
|
|
||||||
run: |
|
|
||||||
echo "VERSION_TITLE=$(yaclog show -n)" >> $GITHUB_ENV
|
|
||||||
echo "$(yaclog show -mb)" >> RELEASE.md
|
|
||||||
|
|
||||||
- name: Download Build Artifacts
|
- name: Download Build Artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
|
||||||
@ -128,12 +123,9 @@ jobs:
|
|||||||
"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
|
run: |
|
||||||
with:
|
gh release create ${{ github.ref_name }} \
|
||||||
files: |
|
--notes "$(yaclog show -mb)" \
|
||||||
bundled/ConformalDecals-*.zip
|
--title "Version $(yaclog show -n)"
|
||||||
ConformalDecals/GameData/ConformalDecals/Versioning/ConformalDecals.version
|
|
||||||
name: Conformal Decals ${{ env.VERSION_TITLE }}
|
|
||||||
body_path: RELEASE.md
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user