Skip to content

Commit b54ebef

Browse files
Merge pull request #558 from talkjs/auto-release
Auto release script
2 parents e02ef61 + 0267772 commit b54ebef

File tree

82 files changed

+26
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+26
-0
lines changed

.github/workflows/zip.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "zip"
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
8+
jobs:
9+
zip-and-release-folders:
10+
name: Zip and folders and create release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: zip folders
16+
run: find * -mindepth 1 -maxdepth 1 -type d -exec sh -c 'cd "$0" ; zip -r "../../`echo "$0" | tr / .`.zip" *' {} \;
17+
18+
- name: Get current date
19+
id: date
20+
run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H.%M.%S')"
21+
22+
- name: release
23+
uses: softprops/action-gh-release@v2
24+
with:
25+
files: "*.zip"
26+
tag_name: ${{ steps.date.outputs.date }}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)