-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from Bloodsucker/30-release-110
30 release 110
- Loading branch information
Showing
26 changed files
with
498 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Nightly Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
nightly-release: | ||
runs-on: ubuntu-latest | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Bump version (canary) | ||
id: bump-version | ||
run: | | ||
SHORT_VERSION=$(python3 update-version.py get-version --short) | ||
NEW_VERSION="${SHORT_VERSION}-SNAPSHOT-$(git rev-parse --short HEAD)" | ||
NEW_ASSEMBLY_VERSION="${SHORT_VERSION}.0" | ||
python3 update-version.py update-version --new-version "$NEW_VERSION" --new-assembly-version $NEW_ASSEMBLY_VERSION | ||
git --no-pager diff | ||
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT | ||
- id: build-mod | ||
uses: ./.github/actions/build-mod | ||
with: | ||
ksp_dlls_donwload_url: ${{ secrets.KSP_DLLS_DONWLOAD_URL }} | ||
ksp_dlls_password: ${{ secrets.KSP_DLLS_PASSWORD }} | ||
tmp_path: ${{ runner.temp }} | ||
- name: Preparing Release files | ||
id: release-files | ||
run: | | ||
mkdir -p $RUNNER_TEMP/release | ||
ZIP_FILENAME="BetterRocketDesigns-v${{ steps.bump-version.outputs.new_version }}.zip" | ||
mv ${{ steps.build-mod.outputs.zip_path }} $RUNNER_TEMP/release/$ZIP_FILENAME | ||
echo "release_zip=$RUNNER_TEMP/release/$ZIP_FILENAME" >> $GITHUB_OUTPUT | ||
- name: Delete latest canary release | ||
run: gh release delete canary -y || true | ||
- name: Release new canary | ||
run: gh release create canary --prerelease --generate-notes --target develop --title 'Canary (v${{ steps.bump-version.outputs.new_version }})' '${{ steps.release-files.outputs.release_zip }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: "PR to develop" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
validate-dev-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: build-mod | ||
uses: ./.github/actions/build-mod | ||
with: | ||
ksp_dlls_donwload_url: ${{ secrets.KSP_DLLS_DONWLOAD_URL }} | ||
ksp_dlls_password: ${{ secrets.KSP_DLLS_PASSWORD }} | ||
tmp_path: ${{ runner.temp }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.