Skip to content

Commit

Permalink
Add release workflow (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
lopcode authored Aug 20, 2024
1 parent 75a6671 commit 66bc0e3
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish to GitHub Packages

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 22

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.9

- name: Run checks
run: ./gradlew build check shadowJar

- name: Run samples
run: |
vips --version || (sudo apt update && sudo apt install libvips-dev)
./run_samples.sh
- name: Publish
run: ./gradlew core:publish
env:
GITHUB_VERSION: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 66bc0e3

Please sign in to comment.