Skip to content

Commit 8099cbe

Browse files
committed
add release
1 parent e788e0b commit 8099cbe

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- feature/migrate_to_github_actions
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Convert yaml to json
15+
run: python .github/workflows/lib/yaml_to_json.py resources/referers.yml referers.json
16+
- name: Get Date
17+
id: date
18+
run: echo "::set-output name=date::$(date +%Y-%m-%d)"
19+
- name: Create GitHub release and attach referers.json
20+
uses: softprops/action-gh-release@v1
21+
with:
22+
#draft: false
23+
name: ${{ steps.date.outputs.date }}
24+
files: ./referers.json
25+
#env:
26+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)