-
Notifications
You must be signed in to change notification settings - Fork 37
56 lines (52 loc) · 1.55 KB
/
create-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
53
54
55
56
# Copyright (c) 2020-2023 by the Zeek Project. See LICENSE for details.
on:
push:
# Push events to matching v*, i.e. v1.0, v20.15.10. We exclude `-dev` tags.
tags:
- 'v*'
- '!v*-dev'
name: Create Release
# In order to create a release we need content write permissions.
permissions:
contents: write
jobs:
build:
name: Upload Release Assets
runs-on: ubuntu-latest
steps:
- name: 'Wait for status checks'
id: waitforstatuschecks
uses: "WyriHaximus/github-action-wait-for-status@v1"
with:
ignoreActions: "Upload Release Assets"
checkInterval: 60
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Prepare archive
run: |
./scripts/make-tarball.sh
- name: Fetch platform packages
shell: bash
run: |
./scripts/store-release-artifacts --commit ${{ github.sha }}
for f in binary_artifacts/*.*; do
if [[ "$f" == *"docker"* ]]; then
mv "$f" "${f//docker/linux}"
fi
done
- name: Upload Release Assets
id: upload-release-assets
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
files: |
spicy*.tar.gz
binary_artifacts/spicy*.tar.gz
binary_artifacts/spicy*.deb
binary_artifacts/spicy*.rpm