Compare commits

...

29 Commits

Author SHA1 Message Date
Jett
844516f159 Update build-and-test.yml 2023-05-13 20:43:14 +01:00
Jett
677a0c9bdb Update versions.txt 2023-05-10 11:26:04 +01:00
Jett
ff95a37b20 Update versions.txt 2023-05-10 11:05:23 +01:00
Jett
40a5d5ebab Update publishing.yml 2023-05-10 11:04:48 +01:00
Jett
bd8e519479 Update versions.txt 2023-05-10 10:32:31 +01:00
Jett
669785577a Update publishing.yml 2023-05-10 10:31:50 +01:00
Jett
031fd237be Update versions.txt 2023-05-10 00:17:37 +01:00
Jett
0655a1d64f Update publishing.yml 2023-05-10 00:16:55 +01:00
Jett
d5c1840f70 Update versions.txt 2023-05-10 00:04:45 +01:00
Jett
4b86312317 Update publishing.yml 2023-05-10 00:04:36 +01:00
Jett
1934c112f2 Update versions.txt 2023-05-09 23:46:00 +01:00
Jett
bb4fa39d12 Update publishing.yml 2023-05-09 23:45:33 +01:00
Jett
a94729afb7 Update versions.txt 2023-05-09 23:28:55 +01:00
Jett
180b1d1bfc Update publishing.yml 2023-05-09 23:28:38 +01:00
Jett
f4bb7c8b0c Update versions.txt 2023-05-09 23:16:27 +01:00
Jett
4ee3db2c64 Update publishing.yml 2023-05-09 23:15:26 +01:00
Jett
208af68ca0 Update versions.txt 2023-05-09 23:02:07 +01:00
Jett
4212e56654 Update publishing.yml 2023-05-09 22:59:01 +01:00
Jett
20faad8f14 Update versions.txt 2023-05-09 22:42:33 +01:00
Jett
66b5dd0d54 Update publishing.yml 2023-05-09 22:42:16 +01:00
Jett
912999ff7f Update versions.txt 2023-05-09 22:33:34 +01:00
Jett
2965bd8f8c Update publishing.yml 2023-05-09 22:33:15 +01:00
Jett
be66da0fb0 Update versions.txt 2023-05-09 22:18:39 +01:00
Jett
d38aec016b Update publishing.yml 2023-05-09 22:18:21 +01:00
Jett
2aa029d598 Update versions.txt 2023-05-09 21:55:36 +01:00
Jett
00647a45a9 Update publishing.yml 2023-05-09 21:55:09 +01:00
Jett
eec595594c Update versions.txt 2023-05-09 21:33:29 +01:00
Jett
a16b8a2339 Update publishing.yml 2023-05-09 21:33:13 +01:00
Jett
f1bf3b25dc Create publishing.yml 2023-05-09 21:32:50 +01:00
3 changed files with 130 additions and 19 deletions

View File

@@ -2,9 +2,9 @@ name: CI
on:
push:
branches: [ main ]
branches: [ main, automation ]
pull_request:
branches: [ main ]
branches: [ main, automation ]
jobs:
build-and-test:
@@ -36,22 +36,16 @@ jobs:
testPreset: "ci-${{matrix.os}}"
- name: artifacts
uses: actions/upload-artifact@v3
if: ${{ github.ref == 'ref/head/main' }}
with:
name: build-${{matrix.os}}
path: |
build
!build/tests
!build/Testing
!build/CMakeFiles
!build/DartConfiguration.tcl
!build/CTestTestfile.cmake
!build/CMakeCache.txt
!build/build.ninja
!build/_deps
!build/cmake_install.cmake
!build/*.a
!build/*.lib
!build/*.dir
!build/*.vcxproj
!build/*.vcxproj.filters
build/*Server*
build/*.ini
build/*.so
build/*.dll
build/vanity/
build/navmeshes/
build/migrations/
build/*.dcf
!build/*.pdb
!build/d*/

116
.github/workflows/publishing.yml vendored Normal file
View File

@@ -0,0 +1,116 @@
name: CI
on:
push:
paths:
- versions.txt
jobs:
build-and-test:
name: Build & Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os: [ windows-2022, ubuntu-20.04, macos-11 ]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Add msbuild to PATH (Windows only)
if: ${{ matrix.os == 'windows-2022' }}
uses: microsoft/setup-msbuild@v1.1
with:
vs-version: '[17,18)'
msbuild-architecture: x64
- name: Install libssl (Mac Only)
if: ${{ matrix.os == 'macos-11' }}
run: brew install openssl@3
- name: cmake
uses: lukka/run-cmake@v10
with:
configurePreset: "ci-${{matrix.os}}"
buildPreset: "ci-${{matrix.os}}"
testPreset: "ci-${{matrix.os}}"
- name: artifacts
uses: actions/upload-artifact@v3
with:
name: build-${{matrix.os}}
path: |
build/*Server*
build/*.ini
build/*.so
build/*.dll
build/vanity/
build/navmeshes/
build/migrations/
build/*.dcf
!build/*.pdb
!build/d*/
draft-release:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Get Previous Tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: v1.0
- name: Generate Changelog
uses: Bullrich/generate-release-changelog@master
id: changelog
env:
REPO: ${{ github.repository }}
with:
from-tag: ${{ steps.previoustag.outputs.tag }}
to-tag: HEAD
- name: Take a gander at versions.txt to get updated information
run: |
IFS=" - " read -ra PARTS <<< "$(head -n 1 versions.txt)"
echo "VERSION=${PARTS[0]}" >> $GITHUB_ENV
echo "DESCRIPTION=$(IFS=' '; echo "${PARTS[*]:1}")" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.VERSION }}
release_name: Release v${{ env.VERSION }}
body: "Draft release for version v${{ env.VERSION }} \n\n ${{ env.DESCRIPTION }} \n\n ${{ steps.changelog.outputs.changelog }}"
draft: true
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Upload Release Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd artifacts
for folder in */; do
zip -r "${folder%/}.zip" "$folder"
done
ls
for file in *.zip; do
echo "Uploading $file"
curl --progress-bar \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ env.GITHUB_TOKEN }}" \
--upload-file "$file" \
-H "Content-Type: $(file --mime-type -b $file)" \
"https://uploads.github.com/repos/${{ github.repository }}/releases/${{ steps.create_release.outputs.id }}/assets?name=$(basename $file)"
done

View File

@@ -1,3 +1,4 @@
1.2 - I genuinely have run out of bad among us jokes, what test text do I use now?
1.0 - Final cleanup and bug fixing for public release
0.9 - Includes BBB without the need for a UGC server, cannon cove minigame, and bug fixes.
0.8 - Added Ninjago! and it's various features + frakjaw minigame. AG survival now works.