This commit is contained in:
parent
743d1e13f3
commit
0bed532593
2 changed files with 27 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
.distignore
|
|
||||||
.git
|
.git
|
||||||
.gitignore
|
.gitignore
|
||||||
.php_cs
|
.php_cs
|
||||||
|
@ -31,4 +30,5 @@ readme.md
|
||||||
SECURITY.md
|
SECURITY.md
|
||||||
src
|
src
|
||||||
tests
|
tests
|
||||||
vendor
|
vendor
|
||||||
|
.distignore
|
25
.forgejo/workflows/release.yml
Normal file
25
.forgejo/workflows/release.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags: '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
upload-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
|
- uses: actions/forgejo-release@v1
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
url: https://code.forgejo.org
|
||||||
|
release-notes: "MY RELEASE NOTES"
|
Loading…
Reference in a new issue