Skip to content

Release

Release #20

Workflow file for this run

name: Release
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run:
|
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run project command
run:
|
python -m odg -r -c -s
echo "RELEASE_NAME=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Zip itembuilds
run:
|
cd itembuilds
zip -r ../itembuilds.zip .
cd ..
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.RELEASE_NAME }}
body: Daily release
files: itembuilds.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}