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

33 lines
815 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
2024-10-29 17:50:13 +01:00
- name: Remove Files Listed in .distignore
run: ls -la
2024-10-29 17:02:53 +01:00
- name: Remove Files Listed in .distignore
2024-10-29 17:52:29 +01:00
run: rm -r tests/
- name: Remove Files Listed in .distignore
run: ls -la
2024-10-29 17:02:53 +01:00
2024-10-29 20:35:21 +01:00
- name: Create Release Directory
run: mkdir -p dist/release
- name: Move Release Files
2024-10-29 20:37:41 +01:00
run: 'shopt -s extglob && mv !(dist) dist/release'
2024-10-29 20:35:21 +01:00
2024-10-29 17:51:16 +01:00
- uses: https://code.forgejo.org/actions/forgejo-release@v2
2024-10-29 15:41:22 +01:00
with:
direction: upload
2024-10-29 16:07:04 +01:00
url: https://code.event-federation.eu
release-dir: dist/release
release-notes: "MY RELEASE NOTES"
2024-10-29 16:09:46 +01:00
token: ${{ secrets.GITHUB_TOKEN }}