Files
cosmetics/.gitea/workflows/build_nightly.yaml

32 lines
726 B
YAML

name: Build Nightly
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
build-and-release:
name: Build & Release
runs-on: nix-latest
steps:
- name: Checkout
uses: https://gitea.com/actions/checkout@v4
- name: Build
run: |
cp ./VERSION ./VERSION.tmp
echo "$(cat ./VERSION.tmp)+$(git rev-parse --short $GITHUB_SHA)" > ./VERSION
nix build .#default
- name: Rename
run: mv ./result ./SixSides\ Cosmetics.zip
- name: Publish
uses: https://gitea.com/actions/gitea-release-action@v1
with:
prerelease: true
name: Nightly
tag_name: nightly
files: |-
*.zip