Skip to content

Only static link gnutls #4

Only static link gnutls

Only static link gnutls #4

Workflow file for this run

name: release
on:
push:
tags:
- '*'
branches:
- main
pull_request:
jobs:
build:
name: Build the wget binary
runs-on: ubuntu-latest
container:
image: ghcr.io/toltec-dev/base:v1.2
steps:
- name: Checkout the Git repository
uses: actions/checkout@v2
- name: Build the binary
run: ./build
- name: Store the resulting artifact
uses: actions/upload-artifact@v2
with:
name: wget
path: /root/wget
release:
name: Publish the wget binary
runs-on: ubuntu-latest
needs: build
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Fetch the built binary
uses: actions/download-artifact@v2
with:
name: wget
- name: Transfer packages and index
run: |
mkdir -p private
chmod 700 private
echo "${{ secrets.SSH_PRIVATE_KEY }}" > private/id_rsa
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > private/known_hosts
chmod 600 private/*
version="$(echo "${{ github.ref }}" | cut -d / -f 3)"
scp -i private/id_rsa -o UserKnownHostsFile=private/known_hosts \
wget "${{ secrets.REMOTE }}":/srv/toltec/thirdparty/bin/wget-"$version"