-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 819 Bytes
/
release.yml
File metadata and controls
37 lines (32 loc) · 819 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:
- "[0-9]+.[0-9]+.[0-9]+"
permissions:
contents: "write"
jobs:
release:
name: Release pushed tag
runs-on: ubuntu-22.04
env:
TAG: ${{ github.ref_name }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: autoverifactu
- name: Package
run: |
zip -r "autoverifactu-$TAG.zip" autoverifactu \
-x 'autoverifactu/.*' \
-x 'autoverifactu/composer.*'
- name: Create release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "$TAG" \
--repo="$GITHUB_REPOSITORY" \
--title="$TAG" \
--generate-notes \
"autoverifactu-$TAG.zip#Auto-Veri*Factu $TAG"