Skip to content

Instantly share code, notes, and snippets.

@krzema12
Created November 22, 2024 08:24
Show Gist options
  • Save krzema12/f808ae5c0d185f03e1db30dcbbafcb11 to your computer and use it in GitHub Desktop.
Save krzema12/f808ae5c0d185f03e1db30dcbbafcb11 to your computer and use it in GitHub Desktop.
An example workflow in YAML
name: Build
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: (Re)store build and cache dirs
uses: actions/cache@v4
with:
path: |
build
.cache
key: build-cache-dirs
enableCrossOsArchive: true
- name: Check out the code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build
run: ./gradlew build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment