Nightly Build #2118
This file contains hidden or 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: Nightly Build | |
| on: | |
| schedule: | |
| - cron: '0 2 * * *' # run at 2 AM UTC | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| name: Nightly Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Set up Java 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '21' | |
| - name: Get current date | |
| id: date | |
| run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| python-version: '3.11' | |
| - name: Install the project | |
| run: uv sync --all-extras --dev --pre | |
| - name: Generate new Brick ontology | |
| # generate new Brick ontology (in case this hasn't been run) | |
| run: | | |
| uv run make | |
| ls -lh Brick*.ttl | |
| - name: zip imports and extensions | |
| run: | | |
| zip -r imports.zip imports | |
| zip -r extensions.zip extensions | |
| - uses: marvinpinto/action-automatic-releases@latest | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| prerelease: true | |
| automatic_release_tag: nightly | |
| title: Nightly Build ${{ steps.date.outputs.date }} | |
| files: | | |
| Brick.ttl | |
| Brick+imports.ttl | |
| Brick+extensions.ttl | |
| Brick-only.ttl | |
| imports.zip | |
| extensions.zip |