-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 997 Bytes
/
release.yml
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
name: Release workflow
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
release:
name: Release on GitHub
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build project
run: |
cd /home/runner/work/splitdropdown/
rm -r splitdropdown/.git*
tar -zcvf splitdropdown-${{ github.ref_name }}.tgz splitdropdown
- name: Upload release
uses: actions/upload-artifact@v4
with:
name: splitdropdown-${{ github.ref_name }}.tgz
path: /home/runner/work/splitdropdown/splitdropdown-${{ github.ref_name }}.tgz
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: /home/runner/work/splitdropdown/splitdropdown-${{ github.ref_name }}.tgz
body: "New release is available"
name: ${{ github.ref_name }}
draft: true
generate_release_notes: true