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

27 lines
684 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
release-notes: "MY RELEASE NOTES"
2024-10-29 15:47:40 +01:00
token: ${{ env.GITHUB_TOKEN }}