-
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (59 loc) · 1.85 KB
/
release.yml
File metadata and controls
59 lines (59 loc) · 1.85 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Action Release
permissions:
contents: write
discussions: write
on:
push:
tags:
- "v*.*.*"
- "v*.*.*-.*"
merge_group:
branches:
- main
release:
types:
- created
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Build Project Assets
run: |
mkdir -pv boolean-toggle.nvim
cp -rv lua README.md LICENSE boolean-toggle.nvim
zip -r -9 boolean-toggle.nvim.zip boolean-toggle.nvim
tar cvJf boolean-toggle.nvim.tar.xz boolean-toggle.nvim
tar cvzf boolean-toggle.nvim.tar.gz boolean-toggle.nvim
7z a -mx9 -mmt -sdel boolean-toggle.nvim.7z boolean-toggle.nvim
sha512sum boolean-toggle.nvim.7z boolean-toggle.nvim.zip boolean-toggle.nvim.tar.xz boolean-toggle.nvim.7z boolean-toggle.nvim.tar.gz >| sha512sums.txt
md5sum boolean-toggle.nvim.7z boolean-toggle.nvim.zip boolean-toggle.nvim.tar.xz boolean-toggle.nvim.7z boolean-toggle.nvim.tar.gz >| md5sums.txt
- name: Get Release
uses: joutvhu/get-release@v1.0.3
with:
latest: true
prerelease: true
pattern: "^v.*"
debug: true
throwing: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build Release File
run: |
echo ${{ github.sha }} > Release.txt
cat Release.txt
- name: Release
uses: softprops/action-gh-release@v3
if: github.ref_type == 'tag'
with:
generate_release_notes: true
files: |
Release.txt
md5sums.txt
sha512sums.txt
boolean-toggle.nvim.7z
boolean-toggle.nvim.tar.gz
boolean-toggle.nvim.tar.xz
boolean-toggle.nvim.zip
# vim: set ts=2 sts=2 sw=2 et ai si sta: