-
Notifications
You must be signed in to change notification settings - Fork 50
37 lines (35 loc) · 1.13 KB
/
release.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
name: release
on:
push:
tags:
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
release:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- shell: bash
run: echo "wob_tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.wob_tag }}
release_name: wob ${{ env.wob_tag }}
draft: false
prerelease: true
- run: |
mkdir "wob-${{ env.wob_tag }}"
mv src test protocols *.scd meson* LICENSE README.md "wob-${{ env.wob_tag }}"
tar -czf "wob-${{ env.wob_tag }}.tar.gz" "wob-${{ env.wob_tag }}"
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./wob-${{ env.wob_tag }}.tar.gz
asset_name: wob-${{ env.wob_tag }}.tar.gz
asset_content_type: application/tar+gz