-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 967 Bytes
/
Copy pathrelease.yml
File metadata and controls
37 lines (31 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Release
on:
push:
tags:
- 'v*' # läuft nur bei Tags wie v2026.07.01
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate JSON
run: |
jq . data/money.json
jq . data/stats.json
- name: Create Release Archive
run: |
mkdir release
cp data/money.json data/stats.json money.html stats.html README.md LICENSE favicon.png README.html release/
tar -czf bond-${{ github.ref_name }}.tar.gz -C release .
zip -r bond-${{ github.ref_name }}.zip release
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
name: "Release ${{ github.ref_name }}"
files: |
bond-${{ github.ref_name }}.tar.gz
bond-${{ github.ref_name }}.zip