Main rfs (#2079) #181
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release (testing) | |
on: | |
push: | |
# Matching on any tags which is not a production release | |
# Matching: | |
# - v1.0.0-beta5 | |
# - v1.0.1-rc3 | |
# - v2.1.4-hotfix-87 | |
# | |
# Ignoring: | |
# - v1.0.0 | |
# - v1.1.0 | |
# - v2.1.13 | |
tags: | |
- "v*-*" | |
jobs: | |
build: | |
name: Build and upload | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.21 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.21 | |
id: go | |
- name: Checkout code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: Build binaries | |
run: | | |
go generate ./pkg/capacity/... | |
cd cmds | |
make | |
env: | |
GO111MODULE: on | |
- name: Collecting files | |
run: | | |
scripts/collect.sh ${{ github.workspace }}/archive | |
- name: Uploading flist (${{ github.ref }}) | |
if: success() | |
uses: threefoldtech/publish-flist@master | |
with: | |
token: ${{ secrets.HUB_JWT }} | |
action: publish | |
user: tf-autobuilder | |
root: archive | |
name: zos-${{ github.ref }}.flist | |
- name: Rename flist from zos-${{ github.ref }}.flist to zos:${{ github.ref }}.flist | |
if: success() | |
uses: threefoldtech/publish-flist@master | |
with: | |
token: ${{ secrets.HUB_JWT }} | |
action: rename | |
user: tf-autobuilder | |
name: zos-${{ github.ref }}.flist | |
target: zos:${{ github.ref }}.flist |