forked from caelestia-dots/shell
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 890 Bytes
/
release.yml
File metadata and controls
37 lines (31 loc) · 890 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: Create release
on:
push:
tags:
- 'v*'
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Create packages
run: |
mkdir -p release
rsync -av \
--exclude='release' \
--exclude='.*' \
--exclude='nix' \
--exclude='flake.lock' \
--exclude='flake.nix' \
. release
tar -czf caelestia-shell-${{ github.ref_name }}.tar.gz release
cp caelestia-shell-${{ github.ref_name }}.tar.gz caelestia-shell-latest.tar.gz
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: |
caelestia-shell-${{ github.ref_name }}.tar.gz
caelestia-shell-latest.tar.gz
generate_release_notes: true