1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-23 01:07:23 +02:00
lego/.github/workflows/release.yml

74 lines
2.0 KiB
YAML
Raw Normal View History

2022-04-29 20:57:00 +02:00
name: Release
on:
push:
tags:
- v*
jobs:
release:
name: Release version
runs-on: ubuntu-latest
env:
2023-08-19 18:05:33 +02:00
GO_VERSION: stable
2022-04-29 20:57:00 +02:00
CGO_ENABLED: 0
steps:
2023-09-20 01:30:33 +02:00
# temporary workaround for an error in free disk space action
# https://github.com/jlumbroso/free-disk-space/issues/14
- name: Update Package List and Remove Dotnet
run: |
sudo apt-get update
sudo apt-get remove -y '^dotnet-.*'
2023-07-20 14:44:37 +02:00
# https://github.com/marketplace/actions/free-disk-space-ubuntu
- name: Free Disk Space
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed
tool-cache: false
# all of these default to true
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: false
2022-04-29 20:57:00 +02:00
- name: Check out code
2024-02-02 03:21:10 +02:00
uses: actions/checkout@v4
2022-04-29 20:57:00 +02:00
with:
fetch-depth: 0
- name: Set up Go ${{ env.GO_VERSION }}
2024-02-02 03:21:10 +02:00
uses: actions/setup-go@v5
2022-04-29 20:57:00 +02:00
with:
go-version: ${{ env.GO_VERSION }}
2022-04-29 20:57:00 +02:00
- name: Docker Login
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
- name: Install snapcraft
run: sudo snap install snapcraft --classic
- name: Set up QEMU
2024-02-02 03:21:10 +02:00
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
2022-04-29 20:57:00 +02:00
# https://goreleaser.com/ci/actions/
- name: Run GoReleaser
2024-11-11 13:13:00 +02:00
uses: goreleaser/goreleaser-action@v6
2022-04-29 20:57:00 +02:00
with:
version: latest
args: release -p 1 --clean --timeout=90m
2022-04-29 20:57:00 +02:00
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }}
2024-05-28 13:28:21 +02:00
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}