Skip to content

Release Latest Build #12

Release Latest Build

Release Latest Build #12

Workflow file for this run

name: Release Latest Build
on:
push:
branches:
- main
workflow_dispatch:
jobs:
release:
runs-on: macos-latest
steps:
- name: Checkout with submodules
uses: actions/checkout@v4
with:
submodules: true
- name: Make shell script executable
run: chmod +x ./build
- name: Run build script
run: ./build
- name: Clean up source files
run: |
find . -mindepth 1 -maxdepth 1 ! -name 'GSInstallerMac.zip' ! -name '.git' -exec rm -rf {} +
- name: Version File
run: |
date +%s > version
- name: Set up Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout --orphan latest-release
- name: Commit and push changes
run: |
git add .
git commit -m "Latest build $(date "+%Y-%m-%d %H:%M:%S")"
git push -f origin latest-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}