Skip to content

Commit ddd926d

Browse files
authored
Update main.yml
1 parent d0a9be0 commit ddd926d

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1-
name: Publish
1+
2+
name: Create release
23

34
on:
45
push:
6+
branches:
7+
- master
58
tags:
69
- '*.*.*'
710

811
jobs:
9-
create-release:
12+
build:
1013
runs-on: ubuntu-latest
1114

1215
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v3
15-
- name: Upload Zip to release
16-
uses: svenstaro/upload-release-action@v2
17-
with:
18-
repo_token: ${{ secrets.GITHUB_TOKEN }}
19-
file: target/release/mything
20-
asset_name: mything
21-
tag: ${{ github.ref }}
22-
overwrite: true
23-
body: "This is my release text"
24-
16+
- uses: actions/checkout@v2
17+
18+
- name: Zip Folder
19+
run: zip -r ${{ github.event.repository.name }}.zip .
20+
21+
- name: Release
22+
uses: softprops/action-gh-release@v1
23+
if: startsWith(github.ref, 'refs/tags/')
24+
with:
25+
files: ${{ github.event.repository.name }}.zip
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)