forked from ooni/probe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 992 Bytes
/
tarball.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
# Vendors Go modules and publishes tarball
name: tarball
on:
push:
branches:
- "fullbuild"
tags:
- "v*"
schedule:
- cron: "17 1 * * *"
jobs:
generate_tarball:
runs-on: "ubuntu-22.04"
permissions: # See https://github.com/ooni/probe/issues/2154
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get GOVERSION content
id: goversion
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
cache-key-suffix: "-tarball-${{ steps.goversion.outputs.version }}"
- name: Generate the release tarball
run: ./script/maketarball.bash
- name: Upload release tarball
run: ./script/ghpublish.bash ooni-probe-cli-*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}