-
Notifications
You must be signed in to change notification settings - Fork 3
26 lines (23 loc) · 815 Bytes
/
Copy pathrelease.yml
File metadata and controls
26 lines (23 loc) · 815 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
name: Upload Archived Release Assets
on:
release:
types: [published]
permissions:
contents: write
jobs:
upload_archived_asset:
name: Upload Archived Assets
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create ShokoRelay.bundle
run: |
cd ..
tar -zcvf ShokoRelay.bundle.tar.gz ShokoRelay.bundle/Contents ShokoRelay.bundle/README.md
zip -r ShokoRelay.bundle.zip ShokoRelay.bundle/Contents ShokoRelay.bundle/README.md
cd ShokoRelay.bundle
gh release upload ${{ github.event.release.tag_name }} ../ShokoRelay.bundle.tar.gz
gh release upload ${{ github.event.release.tag_name }} ../ShokoRelay.bundle.zip
env:
GITHUB_TOKEN: ${{ github.TOKEN }}