🧭 “Daring Do and the Yaks that SMASH!” 2.3.1.3 🏔️ #129
Workflow file for this run
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
name: Build Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure and reload Docker daemon to allow for bigger shm | |
run: | | |
echo '{ "cgroup-parent": "/actions_job", "default-shm-size": "512M" }' | sudo tee /etc/docker/daemon.json && sudo systemctl reload docker | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 1 | |
- name: Build release through PrepareForUpload.sh | |
run: | | |
devDir="equestria_dev" | |
destDir="equestria" | |
chmod +x ./PrepareForUpload.sh | |
./PrepareForUpload.sh $devDir $destDir equestria.jpg | |
mkdir build | |
mv ../$destDir build | |
mv ../"$destDir.mod" build | |
cd build | |
pwd | |
zip -rq "$destDir.zip" . | |
mv "$destDir.zip" .. | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: equestria | |
path: equestria.zip | |
- name: Upload files to a GitHub release | |
uses: svenstaro/upload-release-action@2.9.0 | |
with: | |
file: equestria.zip | |
tag: ${{ github.ref }} | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
overwrite: true | |
# - name: Upload to Steam Workshop | |
# if: success() || failure() | |
# uses: Yard1/PDX-Steam-Workshop-Publisher-Action@master | |
# with: | |
# steamLogin: Equestria_at_War | |
# steamPassword: ${{ secrets.STEAMPASSWORD }} | |
# PDXLogin: antoni.baum@protonmail.com | |
# PDXPassword: ${{ secrets.PDXPASSWORD }} | |
# POP3Address: ${{ secrets.POP3ADDRESS }} | |
# POP3User: ${{ secrets.POP3USER }} | |
# POP3Password: ${{ secrets.POP3PASSWORD }} | |
# modPath: "build" | |
# debugImagePath: images | |
# descriptionPath: tutorial/steam_description.txt | |
# - name: Upload artifact | |
# if: always() | |
# uses: actions/upload-artifact@v1.0.0 | |
# with: | |
# name: debug_images | |
# path: images |