Replace old GitHub workflow with Gitea workflow.
This commit is contained in:
parent
6ef7fb0117
commit
ad2b24754f
27
.gitea/workflows/check-publish-release.yml
Normal file
27
.gitea/workflows/check-publish-release.yml
Normal file
@ -0,0 +1,27 @@
|
||||
name: Ssg Check, Publish, and Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Java.
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 21
|
||||
- name: Check libraries
|
||||
run: ./gradlew check
|
||||
- name: Publish to git.jessebrault.com
|
||||
run: ./gradlew publishAllPublicationsToGiteaRepository
|
||||
- name: Release to git.jessebrault.com
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
files: |-
|
||||
cli/build/distributions/*.tar
|
||||
cli/build/distributions/*.zip
|
||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
29
.github/workflows/release.yml
vendored
29
.github/workflows/release.yml
vendored
@ -1,29 +0,0 @@
|
||||
name: StaticSiteGenerator Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up JDK 17
|
||||
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:assembleDist
|
||||
- name: Release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: 'cli/build/distributions/*.tar,cli/build/distributions/*.zip'
|
||||
name: ${{ env.GITHUB_REF_NAME }}
|
||||
tag: ${{ env.GITHUB_REF_NAME }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user