-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.yml
More file actions
31 lines (26 loc) · 783 Bytes
/
Copy pathrelease.yml
File metadata and controls
31 lines (26 loc) · 783 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
name: Release LayerSpy
on:
push:
tags:
- 'v*' # Trigger workflow on tags starting with v (e.g. v1.0.0)
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create ZIP archive
run: |
zip -r LayerSpy-${{ github.ref_name }}.zip . -x ".git/*" ".github/*"
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: LayerSpy-${{ github.ref_name }}.zip
name: Release ${{ github.ref_name }}
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}