Skip to content

Build and Push

Build and Push #21

name: Build and Push
on: workflow_dispatch
jobs:
android:
uses: ./.github/workflows/android.yml
ios:
uses: ./.github/workflows/ios.yml
linux:
uses: ./.github/workflows/linux.yml
mac:
uses: ./.github/workflows/mac.yml
windows:
uses: ./.github/workflows/windows.yml
miscellaneous:
uses: ./.github/workflows/miscellaneous.yml
publisher:
needs: [android, ios, linux, mac, windows, miscellaneous]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
- name: Delete old NDLL's
run: |
rm -rf ndll
mkdir ndll
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: .
merge-multiple: true
- name: Push to GitHub
run: |
mv Android ndll/Android
mv iPhone ndll/iPhone
mv Linux ndll/Linux
mv Linux64 ndll/Linux64
mv Mac64 ndll/Mac64
mv MacArm64 ndll/MacArm64
mv Windows ndll/Windows
mv Windows64 ndll/Windows64
USERACTOR=${{ github.actor }}
USER_INFO=$(curl -s "https://api.github.com/users/$USERACTOR")
USERID=$(echo "$USER_INFO" | jq -r '.id')
USERNAME=$(echo "$USER_INFO" | jq -r '.name')
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add ndll
git add tools/tools.n
git add run.n
git add svg.n
# git add templates/bin/lime.exe
git commit --author="${USERNAME} <${USERID}+$(echo "$USERACTOR" | sed 's/ /-/g')@users.noreply.github.com>" -m "Built and Pushed New NDLL's." || {
echo "Didn't commit anything, skipping git push."
exit 0
}
git push