2024-10-29 15:41:22 +01:00
|
|
|
on:
|
|
|
|
push:
|
2024-10-29 15:48:22 +01:00
|
|
|
tags: 'v*'
|
2024-10-29 15:41:22 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
upload-release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-10-29 15:43:49 +01:00
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
2024-10-29 15:41:22 +01:00
|
|
|
|
|
|
|
- name: Remove Files Listed in .distignore
|
|
|
|
run: |
|
|
|
|
if [ -f .distignore ]; then
|
|
|
|
while IFS= read -r line; do
|
|
|
|
if [ -n "$line" ] && [ "${line:0:1}" != "#" ]; then
|
|
|
|
rm -rf "$line"
|
|
|
|
fi
|
|
|
|
done < .distignore
|
|
|
|
fi
|
|
|
|
|
2024-10-29 15:43:49 +01:00
|
|
|
- uses: https://code.forgejo.org/actions/forgejo-release@v1
|
2024-10-29 15:41:22 +01:00
|
|
|
with:
|
|
|
|
direction: upload
|
|
|
|
url: https://code.forgejo.org
|
|
|
|
release-notes: "MY RELEASE NOTES"
|
2024-10-29 15:54:56 +01:00
|
|
|
token: ${{ secrets.FORGEJO_RELEASE_TOKEN }}
|