Test output of release notes
This commit is contained in:
parent
808bc48ab9
commit
54192ad60b
1 changed files with 60 additions and 23 deletions
83
.github/workflows/release.yml
vendored
83
.github/workflows/release.yml
vendored
|
@ -9,7 +9,7 @@ permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
release:
|
||||||
runs-on: antville
|
runs-on: antville
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
@ -18,31 +18,68 @@ jobs:
|
||||||
TODAY: $(date +'%d %b %Y')
|
TODAY: $(date +'%d %b %Y')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
|
# with:
|
||||||
|
# fetch-depth: 0
|
||||||
|
|
||||||
- name: Build with Gradle
|
# - name: Create release notes
|
||||||
run: ./gradlew assembleDist
|
# id: create_release_notes
|
||||||
|
# run: |
|
||||||
|
# echo "release_notes=$(npx git-cliff@latest --bump --unreleased | base64 --wrap 0)" >> $GITHUB_OUTPUT
|
||||||
|
# release_notes=1234567890
|
||||||
|
# echo "release_notes << .end" >> $GITHUB_OUTPUT
|
||||||
|
# echo "$release_notes" >> $GITHUB_OUTPUT
|
||||||
|
# echo ".end" >> $GITHUB_OUTPUT
|
||||||
|
# # cat << .outer >> $GITHUB_OUTPUT
|
||||||
|
# # release_notes="\$(cat << .inner
|
||||||
|
# # $release_notes
|
||||||
|
# # .inner)"
|
||||||
|
# # .outer
|
||||||
|
# cat $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create release
|
- name: Set variable to single-line string
|
||||||
uses: actions/forgejo-release@v2
|
id: single_line
|
||||||
with:
|
run: echo foo=123 >> $GITHUB_OUTPUT
|
||||||
direction: upload
|
|
||||||
url: https://code.host.antville.org
|
|
||||||
token: ${{ github.token }}
|
|
||||||
title: ${{ env.TODAY }}
|
|
||||||
release-dir: build/distributions
|
|
||||||
release-notes-assistant: true
|
|
||||||
verbose: true
|
|
||||||
|
|
||||||
- name: Create release at GitHub
|
- name: Output single-line variable
|
||||||
run: |
|
run: |
|
||||||
gh release create "$GITHUB_REF_NAME" \
|
echo "foo: ${{ steps.single_line.outputs.foo }}"
|
||||||
--repo "$GITHUB_REPOSITORY" \
|
|
||||||
--title "${{ env.TODAY }}" \
|
|
||||||
--generate-notes
|
|
||||||
|
|
||||||
- name: Upload release assets to GitHub
|
- name: Set variable to multiline string
|
||||||
|
id: multiline
|
||||||
run: |
|
run: |
|
||||||
gh release upload "$GITHUB_REF_NAME" build/distributions/helma-*.* \
|
echo 'bar << .end' >> $GITHUB_OUTPUT
|
||||||
--repo "$GITHUB_REPOSITORY" \
|
echo 123 >> $GITHUB_OUTPUT
|
||||||
--clobber
|
echo .end >> $GITHUB_OUTPUT
|
||||||
|
cat $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Output multiline variable
|
||||||
|
run: |
|
||||||
|
echo "bar: ${{ steps.multiline.outputs.bar }}"
|
||||||
|
|
||||||
|
# - name: Build with Gradle
|
||||||
|
# run: ./gradlew assembleDist
|
||||||
|
|
||||||
|
# - name: Create release
|
||||||
|
# uses: actions/forgejo-release@v2
|
||||||
|
# with:
|
||||||
|
# direction: upload
|
||||||
|
# url: https://code.host.antville.org
|
||||||
|
# token: ${{ github.token }}
|
||||||
|
# title: ${{ env.TODAY }}
|
||||||
|
# release-dir: build/distributions
|
||||||
|
# release-notes: ${{ steps.create_release_notes.outputs.release_notes }}
|
||||||
|
# verbose: true
|
||||||
|
|
||||||
|
# - name: Create release at GitHub
|
||||||
|
# run: |
|
||||||
|
# gh release create "$GITHUB_REF_NAME" \
|
||||||
|
# --repo "$GITHUB_REPOSITORY" \
|
||||||
|
# --title "${{ env.TODAY }}" \
|
||||||
|
# --generate-notes
|
||||||
|
|
||||||
|
# - name: Upload release assets to GitHub
|
||||||
|
# run: |
|
||||||
|
# gh release upload "$GITHUB_REF_NAME" build/distributions/helma-*.* \
|
||||||
|
# --repo "$GITHUB_REPOSITORY" \
|
||||||
|
# --clobber
|
||||||
|
|
Loading…
Add table
Reference in a new issue