Skip to content

Commit

Permalink
release actions to test in master
Browse files Browse the repository at this point in the history
  • Loading branch information
sgarnotel committed Dec 13, 2023
1 parent 08b681c commit 64217ef
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release-deb.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Debian Release
on:
workflow_dispatch
# workflow_run:
# workflows: ['Release']
# types:
# - completed
workflow_run:
workflows: ['Release']
types:
- completed

jobs:
debian:
Expand Down Expand Up @@ -97,4 +96,4 @@ jobs:
with:
files: ${{ steps.deb.outputs.file }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: v${{ steps.deb.outputs.version }}-testActions
release-tag: v${{ steps.deb.outputs.version }}
11 changes: 5 additions & 6 deletions .github/workflows/release-exe.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Windows Release
on:
workflow_dispatch
# workflow_run:
# workflows: ['Release']
# types:
# - completed
workflow_run:
workflows: ['Release']
types:
- completed

jobs:
debian:
Expand Down Expand Up @@ -86,4 +85,4 @@ jobs:
with:
files: ${{ steps.exe.outputs.file }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: v${{ steps.exe.outputs.version }}-testActions
release-tag: v${{ steps.exe.outputs.version }}
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,23 @@ jobs:
run: |
VERSION=$(grep AC_INIT configure.ac | cut -d"," -f2 | cut -d"[" -f2 | cut -d"]" -f1)
echo "number=$VERSION" >> $GITHUB_OUTPUT
- name: CHANGELOG
id: changelog
run: |
csplit CHANGELOG.md '/^---$/' '{*}' --suppress-matched
RELEASE_NOTE="$(cat xx02)"
echo "release_notes<<EOF" >> $GITHUB_OUTPUT
echo "$RELEASE_NOTE" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create release
continue-on-error: true
uses: softprops/action-gh-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: FreeFEM v${{ steps.version.outputs.number }}-testActions
tag_name: v${{ steps.version.outputs.number }}-testActions
body: '**Warning**: this is an automatic release. If you encounter some trouble with packages, post a message in the [forum](https://community.freefem.org)'
name: FreeFEM v${{ steps.version.outputs.number }}
tag_name: v${{ steps.version.outputs.number }}
body: ${{ steps.changelog.outputs.release_notes }}
draft: false
prerelease: true

0 comments on commit 64217ef

Please sign in to comment.