Making a release workflow, part 1/?.
This commit is contained in:
parent
90db278e39
commit
11899059d1
26
.github/workflows/release.yml
vendored
Normal file
26
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: StaticSiteGenerator Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
- 'v*.*.*-SNAPSHOT'
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up JDK 19
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: adopt
|
||||
cache: gradle
|
||||
- name: Gradle Test
|
||||
run: ./gradlew test
|
||||
- name: Gradle Install
|
||||
run: ./gradlew :cli:install
|
||||
- name: Release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: cli/build/distributions/*
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,3 +5,5 @@
|
||||
build
|
||||
|
||||
.idea
|
||||
|
||||
.DS_Store
|
||||
|
Loading…
Reference in New Issue
Block a user