Skip to content

Automated publishing #6297

Automated publishing

Automated publishing #6297

Workflow file for this run

name: Automated publishing
on:
schedule:
- cron: '0 */6 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.3'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install vpk
- name: Repackage mods
run: |
chmod +x gradlew
./gradlew buildMod -Pcompiler.fullCompile=false
- name: Upload mods to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
TARGET_ROONS_ENV: prod
run: |
./gradlew publishMod -Ptelegram.sendMessage=true
- name: Commit & push changes
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git commit -am "Add the latest strings files" || true
git push