-
-
Notifications
You must be signed in to change notification settings - Fork 56
26 lines (21 loc) · 658 Bytes
/
Copy pathrelease.yml
File metadata and controls
26 lines (21 loc) · 658 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: Attach release tarball
on:
release:
types: [published]
permissions:
contents: write
jobs:
tarball:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Create tarball with fixed directory name
run: |
# Re-pack the repo into haven/ so the path never changes between versions
mkdir -p /tmp/haven
rsync -a --exclude='.git' . /tmp/haven/
tar -czf haven.tar.gz -C /tmp haven
- name: Upload to release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload "${{ github.event.release.tag_name }}" haven.tar.gz --clobber