# Non Workflow Yaml

> Provides GitHub Actions workflow YAML for a CI release build, including gradle/actions/setup-gradle

Provides GitHub Actions workflow YAML for a CI release build, including gradle/actions/setup-gradle with a read-only cache on pull requests and the MODRINTH_TOKEN secret. Use when writing or reviewing GitHub Actions workflows that build Gradle projects or publish releases to Modrinth.

- Page: https://ss33.ai/skills/jahrome907/non-workflow-yaml-90351503535
- Publisher: jahrome907
- Category: [Software Development](https://ss33.ai/skills/category/software-development-t44z8z) › [DevOps & cloud](https://ss33.ai/skills/category/software-development-t44z8z/devops-and-cloud-unkt50)
- License: MIT
- Source: https://github.com/jahrome907/minecraft-agent-skills/blob/30137f93fdbd4446910ceaa8776d561fd291aed1/tests/fixtures/validators/ci-release/non-workflow-yaml/SKILL.md

## Skill

SKILL.md: https://ss33.ai/api/v1/ss33/download/jahrome907/non-workflow-yaml-90351503535

# CI Release Fixture

## Required Secrets

- `MODRINTH_TOKEN`

```yaml
# In all workflow jobs:
- name: Setup Gradle
  uses: gradle/actions/setup-gradle@v3
  with:
    cache-read-only: ${{ github.event_name == 'pull_request' }}
```

```yaml
name: Build
on:
  push:
    branches: ["main"]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - run: echo ok
      - env:
          MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
        run: echo release
```
