Skip to content

tarball

tarball #55

Workflow file for this run

# 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 }}