-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (55 loc) · 1.43 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
on:
push:
branches:
- main
- master
tags:
- 'v*'
pull_request:
jobs:
archive:
name: Archive Ckt
runs-on: ubuntu-latest
env:
REPO_NAME: ${{ github.event.repository.name }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: master
token: ${{ secrets.GITHUB_TOKEN }}
- name: Archive
run: zip -Z deflate ieee13.ckv *.csv *.json README LICENSE
- name: Upload archive
uses: actions/upload-artifact@v2
with:
name: ckv
path: ieee13.ckv
release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
permissions: write-all
needs: [ archive ]
steps:
- uses: actions/download-artifact@v2
with:
name: archive
- name: Release
uses: actions/create-release@v1
id: create_release
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Ckv artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ieee13.ckv
asset_name: ieee13-${{ github.ref_name }}.ckv
asset_content_type: application/zip