-
Notifications
You must be signed in to change notification settings - Fork 115
52 lines (48 loc) · 1.75 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: release
on:
release:
types: [published]
jobs:
build_release:
name: build_release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: print out github context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: list all github action env vars
run: env
- name: build artifacts
run: make -C docker BRANCH=${{ github.event.release.tag_name }} fedora ubuntu package-tgz package-fedora package-ubuntu
- name: upload fedora artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: gerbil-${{ github.event.release.tag_name }}.fedora-1.0-1.x86_64.rpm
asset_name: gerbil-${{ github.event.release.tag_name }}.fedora-1.0-1.x86_64.rpm
asset_content_type: application/zip
- name: upload ubuntu artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: gerbil-${{ github.event.release.tag_name }}.ubuntu-1.0_amd64.deb
asset_name: gerbil-${{ github.event.release.tag_name }}.ubuntu_1.0_amd64.deb
asset_content_type: application/zip
- name: upload tgz
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: gerbil-${{ github.event.release.tag_name }}.x86_64.tgz
asset_name: gerbil-${{ github.event.release.tag_name }}.x86_64.tgz
asset_content_type: application/zip