helma/.github/workflows/release.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

2024-05-30 18:49:45 +02:00
name: Release
on:
2025-02-15 15:25:36 +01:00
workflow_dispatch:
2024-05-30 18:49:45 +02:00
push:
tags: '2*'
2024-05-30 18:49:45 +02:00
permissions:
contents: write
jobs:
build:
2025-01-03 13:35:33 +01:00
runs-on: antville
2024-05-30 18:49:45 +02:00
2024-05-30 20:03:37 +02:00
env:
GH_TOKEN: ${{ github.token }}
2024-05-30 20:25:44 +02:00
LC_TIME: en_US.UTF-8
TODAY: $(date +'%d %b %Y')
2024-05-30 20:03:37 +02:00
2024-05-30 18:49:45 +02:00
steps:
- uses: actions/checkout@v4
- name: Build with Gradle
run: ./gradlew assembleDist
- name: Create release
uses: actions/forgejo-release@v2
2025-02-15 15:25:36 +01:00
with:
direction: upload
url: https://code.host.antville.org
token: ${{ github.token }}
title: ${{ env.TODAY }}
#tag: $(date +'%Y.%m.%d')
2025-02-15 15:25:36 +01:00
release-dir: build/distributions
release-notes-assistant: true
verbose: true
2024-05-30 18:49:45 +02:00
- name: Create release
2025-01-03 13:35:33 +01:00
# FIXME: Currently only outputs gh command; adapt for Forgejo
2024-05-30 18:49:45 +02:00
run: |
2025-01-03 13:35:33 +01:00
echo gh release create "$GITHUB_REF_NAME" \
2024-05-30 18:49:45 +02:00
--repo "$GITHUB_REPOSITORY" \
2024-05-30 20:25:44 +02:00
--title "$(date +'%d %b %Y')" \
2024-05-30 18:49:45 +02:00
--generate-notes
- name: Upload assets
2025-01-03 13:35:33 +01:00
# FIXME: Currently only outputs gh command; adapt for Forgejo
2024-05-30 18:49:45 +02:00
run: |
2025-01-03 13:35:33 +01:00
echo gh release upload "$GITHUB_REF_NAME" \
2024-05-30 18:49:45 +02:00
build/distributions/helma-*.* \
--clobber