Skip to content

Commit 355015a

Browse files
author
arthosofteq
authored
Merge pull request #2 from RedisInsight/gh-actions
add release workflow
2 parents c330e23 + cb00c28 commit 355015a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Release"
2+
3+
on:
4+
push:
5+
branches: [ latest ]
6+
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
- name: Build
15+
run: |
16+
cd src && zip -r ../data.zip .
17+
- name: Set build timestamp
18+
run: |
19+
echo "{\"timestamp\":$(date +%s)}" > build.json
20+
- uses: marvinpinto/action-automatic-releases@latest
21+
with:
22+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
23+
prerelease: false
24+
automatic_release_tag: latest
25+
files: |
26+
data.zip
27+
build.json

0 commit comments

Comments
 (0)