Migrate CI and packaging from Travis CI to GitHub Actions.
This commit is contained in:
@@ -126,10 +126,10 @@ build_appimage() {
|
||||
install -m 0755 gtk-dialog.py "${APPDIR}/usr/bin/gtk-dialog.py"
|
||||
install -m 0755 restore-environment.sh "${APPDIR}/usr/bin/restore-environment.sh"
|
||||
|
||||
# Embed update metadata if (and only if) compiled on travis
|
||||
if [ -n "${TRAVIS_REPO_SLUG}" ]; then
|
||||
# Embed update metadata if (and only if) compiled on GitHub Actions
|
||||
if [ -n "${GITHUB_REPOSITORY}" ]; then
|
||||
ARCH=x86_64 ./squashfs-root/AppRun --no-appstream -u "zsync|https://master.openra.net/appimagecheck?mod=${MOD_ID}&channel=${UPDATE_CHANNEL}" "${APPDIR}" "${OUTPUTDIR}/${APPIMAGE}"
|
||||
zsyncmake -u "https://github.com/${TRAVIS_REPO_SLUG}/releases/download/${TAG}/${APPIMAGE}" -o "${OUTPUTDIR}/${APPIMAGE}.zsync" "${OUTPUTDIR}/${APPIMAGE}"
|
||||
zsyncmake -u "https://github.com/${GITHUB_REPOSITORY}/releases/download/${TAG}/${APPIMAGE}" -o "${OUTPUTDIR}/${APPIMAGE}.zsync" "${OUTPUTDIR}/${APPIMAGE}"
|
||||
else
|
||||
ARCH=x86_64 ./squashfs-root/AppRun --no-appstream "${APPDIR}" "${OUTPUTDIR}/${APPIMAGE}"
|
||||
fi
|
||||
|
||||
Binary file not shown.
@@ -1,44 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
case "$1" in
|
||||
bleed)
|
||||
exit
|
||||
;;
|
||||
next | playtest-*)
|
||||
TAG="playtest"
|
||||
;;
|
||||
master | release-*)
|
||||
TAG="release"
|
||||
;;
|
||||
*)
|
||||
echo "Unknown branch: $1"
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Updating docs.openra.net"
|
||||
|
||||
SSH_KEY="$HOME"/.ssh/id_rsa
|
||||
|
||||
mkdir -p "$(dirname "$SSH_KEY")"
|
||||
openssl aes-256-cbc -k "$KEY" -in ssh.enc -d -out "$SSH_KEY"
|
||||
chmod 0600 "$SSH_KEY"
|
||||
|
||||
rm -rf "$HOME/openra-docs"
|
||||
git clone git@github.com:OpenRA/docs.git "$HOME/openra-docs"
|
||||
|
||||
mono --debug ../OpenRA.Utility.exe all --docs "$1" > "${HOME}/openra-docs/api/${TAG}/traits.md"
|
||||
mono --debug ../OpenRA.Utility.exe all --weapon-docs "$1" > "${HOME}/openra-docs/api/${TAG}/weapons.md"
|
||||
mono --debug ../OpenRA.Utility.exe all --lua-docs "$1" > "${HOME}/openra-docs/api/${TAG}/lua.md"
|
||||
|
||||
pushd "$HOME/openra-docs/api/${TAG}" || exit 1
|
||||
git config --local user.email "orabot@users.noreply.github.com"
|
||||
git config --local user.name "orabot"
|
||||
git add "traits.md"
|
||||
git add "weapons.md"
|
||||
git add "lua.md"
|
||||
git commit -m "Update for branch $1" &&
|
||||
git push origin master
|
||||
popd || exit
|
||||
|
||||
shred -u "$SSH_KEY"
|
||||
@@ -1,40 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
case "$1" in
|
||||
bleed)
|
||||
exit
|
||||
;;
|
||||
next | playtest-*)
|
||||
TAG=" (playtest)"
|
||||
;;
|
||||
master | release-*)
|
||||
TAG=""
|
||||
;;
|
||||
*)
|
||||
echo "Unknown branch: $1"
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Updating wiki.openra.net"
|
||||
|
||||
SSH_KEY="$HOME"/.ssh/id_rsa
|
||||
|
||||
mkdir -p "$(dirname "$SSH_KEY")"
|
||||
openssl aes-256-cbc -k "$KEY" -in ssh.enc -d -out "$SSH_KEY"
|
||||
chmod 0600 "$SSH_KEY"
|
||||
|
||||
rm -rf "$HOME/openra-wiki"
|
||||
git clone git@github.com:OpenRA/OpenRA.wiki.git "$HOME/openra-wiki"
|
||||
|
||||
mono --debug ../OpenRA.Utility.exe all --settings-docs "$1" > "${HOME}/openra-wiki/Settings${TAG}.md"
|
||||
|
||||
pushd "$HOME/openra-wiki" || exit 1
|
||||
git config --local user.email "orabot@users.noreply.github.com"
|
||||
git config --local user.name "orabot"
|
||||
git add "Settings${TAG}.md"
|
||||
git commit -m "Update user documentation for branch $1" &&
|
||||
git push origin master
|
||||
popd || exit
|
||||
|
||||
shred -u "$SSH_KEY"
|
||||
@@ -1,40 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
export GIT_TAG="$1"
|
||||
export BUILD_OUTPUT_DIR="$2"
|
||||
|
||||
case "${GIT_TAG}" in
|
||||
bleed)
|
||||
exit
|
||||
;;
|
||||
next | playtest-*)
|
||||
exit
|
||||
;;
|
||||
master | release-*)
|
||||
;;
|
||||
*)
|
||||
echo "Unknown branch: $1"
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl -L -o butler-linux-amd64.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default
|
||||
else
|
||||
wget -cq -O butler-linux-amd64.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default
|
||||
fi
|
||||
|
||||
unzip butler-linux-amd64.zip
|
||||
chmod +x butler
|
||||
|
||||
./butler -V
|
||||
./butler login
|
||||
cp ${BUILD_OUTPUT_DIR}/OpenRA-${GIT_TAG}-x64-winportable.zip OpenRA-${GIT_TAG}-x64-win-itch-portable.zip
|
||||
zip -u OpenRA-${GIT_TAG}-x64-win-itch-portable.zip .itch.toml
|
||||
./butler push "OpenRA-${GIT_TAG}-x64-win-itch-portable.zip" "openra/openra:win" --userversion-file ../VERSION
|
||||
./butler push --fix-permissions "${BUILD_OUTPUT_DIR}/OpenRA-${GIT_TAG}.dmg" "openra/openra:osx" --userversion-file ../VERSION
|
||||
./butler push --fix-permissions "${BUILD_OUTPUT_DIR}/OpenRA-Dune-2000-x86_64.AppImage" "openra/openra:linux-d2k" --userversion-file ../VERSION
|
||||
./butler push --fix-permissions "${BUILD_OUTPUT_DIR}/OpenRA-Red-Alert-x86_64.AppImage" "openra/openra:linux-ra" --userversion-file ../VERSION
|
||||
./butler push --fix-permissions "${BUILD_OUTPUT_DIR}/OpenRA-Tiberian-Dawn-x86_64.AppImage" "openra/openra:linux-td" --userversion-file ../VERSION
|
||||
|
||||
rm butler butler-linux-amd64.zip 7z.so libc7zip.so
|
||||
Reference in New Issue
Block a user