-
Notifications
You must be signed in to change notification settings - Fork 74
98 lines (92 loc) · 3.01 KB
/
deploy.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: DEPLOY
on:
push:
branches: [ '**' ]
tags-ignore: [ '**' ]
jobs:
build:
if: contains(github.event.head_commit.message, 'deploy+') || contains(github.event.head_commit.message, 'pkg+')
strategy:
matrix:
container: [ "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04", "debian:11", "debian:12", "fedora:37", "fedora:38", "archlinux:latest" ]
# this list should be updated from time to time by consulting these pages:
# https://releases.ubuntu.com/
# https://wiki.debian.org/DebianReleases#Production_Releases
# https://fedoraproject.org/wiki/Releases
runs-on: "ubuntu-latest"
container:
image: ${{ matrix.container }}
env:
DIST: ${{ matrix.container }}
DEBIAN_FRONTEND: noninteractive
steps:
- name: checkout-source
uses: actions/checkout@v1
with:
submodules: recursive
- name: run-builder
shell: bash
run: ./tools/build.sh
- name: upload-artifacts
uses: actions/upload-artifact@v1
with:
name: package-archives
path: artifact
deploy:
if: contains(github.event.head_commit.message, 'deploy+')
needs: build
runs-on: "ubuntu-latest"
container:
image: "archlinux:latest"
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_APIKEY: ${{ secrets.BINTRAY_APIKEY }}
BINTRAY_GPG_DATA: ${{ secrets.GPG_DATA }}
BINTRAY_GPG_ID: ${{ secrets.GPG_ID }}
JFROG_CLI_OFFER_CONFIG: false
steps:
- name: checkout-source
uses: actions/checkout@v1
with:
submodules: recursive
- name: install-jfrog-cli
uses: jfrog/setup-jfrog-cli@v1
- name: download-artifacts
uses: actions/download-artifact@v1
with:
name: package-archives
path: artifact
- name: bintray-publish
shell: bash
run: ./tools/publish.sh
release:
needs: deploy
runs-on: "ubuntu-latest"
steps:
- name: checkout-source
uses: actions/checkout@v1
- name: get-version
id: get_version
shell: bash
run: |
RELEASE_VERSION=$(cat version.txt | head -n1)
echo ::set-output name=RELEASE_VERSION::$RELEASE_VERSION
- name: download-artifacts
uses: actions/download-artifact@v1
with:
name: package-archives
path: artifact
- name: create-release
id: create_release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.get_version.outputs.RELEASE_VERSION }}
name: ${{ steps.get_version.outputs.RELEASE_VERSION }}
artifacts: "artifact/*"
allowUpdates: true
draft: true
body: |
[![Github Releases (by Release)](https://img.shields.io/github/downloads/${{ github.repository }}/${{ steps.get_version.outputs.RELEASE_VERSION }}/total.svg)]()
### Changes in this release:
- ...