wordpress-event-bridge-for-.../.forgejo/workflows/release.yml

26 lines
637 B
YAML
Raw Normal View History

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
2024-10-29 15:58:46 +01:00
token: ${{ FORGEJO_TOKEN }}