-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 855 Bytes
/
CI.yml
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
name: 'CI'
on:
push:
workflow_dispatch:
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Worker
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSIONNOW=$(cat VERSION);echo [$VERSIONNOW];echo -e "VERSIONNOW=$VERSIONNOW\n" >> ${GITHUB_ENV};echo ${{ env.VERSIONNOW }}
- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{ env.VERSIONNOW }}
tag_name: ${{ env.VERSIONNOW }}
body_path: out/RELEASE
files: out/*.ipdb
- name: Clear Releases
uses: dev-drprasad/delete-older-releases@v0.2.0
with:
keep_latest: 5
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}