helma/.github/workflows/release.yml

39 lines
826 B
YAML
Raw Normal View History

2024-05-30 18:49:45 +02:00
name: Release
on:
push:
tags:
- 'v*'
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
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
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