Skip to content

Nightly Build

Nightly Build #103

Workflow file for this run

name: Nightly Build
on:
schedule:
# Run at 00:00 UTC every day
- cron: '0 0 * * *'
workflow_dispatch:
# Allow manual triggering
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Get short SHA
id: sha
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Create build artifact
run: |
# Create a clean directory for the build
mkdir -p build/Tu154_b2
# Copy all files except excluded patterns
rsync -av --progress . build/Tu154_b2/ \
--exclude '.git' \
--exclude '.github' \
--exclude '.claude' \
--exclude '.zed' \
--exclude '.DS_Store' \
--exclude '*.acf~' \
--exclude 'build'
# Create the zip file
cd build
zip -r "../Tu154_b2-nightly-${{ steps.date.outputs.date }}-${{ steps.sha.outputs.sha }}.zip" Tu154_b2
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Tu154_b2-nightly-${{ steps.date.outputs.date }}-${{ steps.sha.outputs.sha }}
path: Tu154_b2-nightly-${{ steps.date.outputs.date }}-${{ steps.sha.outputs.sha }}.zip
retention-days: 30