2024-12-17 14:02:54 +09:00
|
|
|
name: Create distribution
|
2024-07-15 23:47:08 +09:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
2024-12-17 11:06:23 +09:00
|
|
|
name: Release
|
2024-07-15 23:47:08 +09:00
|
|
|
runs-on: ubuntu-latest
|
2024-12-06 03:34:13 +09:00
|
|
|
container:
|
|
|
|
image: node:16-bookworm-slim
|
2024-07-15 23:47:08 +09:00
|
|
|
steps:
|
2024-12-06 03:34:13 +09:00
|
|
|
- name: Get dependencies
|
|
|
|
run: >-
|
|
|
|
echo 'deb http://deb.debian.org/debian bookworm-backports main' >> /etc/apt/sources.list.d/backports.list &&
|
|
|
|
apt-get update &&
|
|
|
|
apt-get install -y
|
2024-12-16 15:57:00 +09:00
|
|
|
acl
|
2024-12-06 03:34:13 +09:00
|
|
|
git
|
|
|
|
gcc
|
|
|
|
pkg-config
|
|
|
|
libwayland-dev
|
|
|
|
wayland-protocols/bookworm-backports
|
|
|
|
libxcb1-dev
|
|
|
|
libacl1-dev
|
|
|
|
if: ${{ runner.os == 'Linux' }}
|
|
|
|
|
2024-07-15 23:47:08 +09:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2024-10-17 00:17:40 +09:00
|
|
|
|
|
|
|
- name: Setup go
|
2024-07-15 23:47:08 +09:00
|
|
|
uses: https://github.com/actions/setup-go@v5
|
|
|
|
with:
|
2024-10-17 00:17:40 +09:00
|
|
|
go-version: '>=1.23.0'
|
|
|
|
|
2024-12-06 03:34:13 +09:00
|
|
|
- name: Go generate
|
2024-07-15 23:47:08 +09:00
|
|
|
run: >-
|
2024-12-06 03:34:13 +09:00
|
|
|
go generate ./...
|
2024-10-17 00:17:40 +09:00
|
|
|
|
2024-12-17 14:02:54 +09:00
|
|
|
- name: Build for release
|
|
|
|
run: FORTIFY_VERSION='${{ github.ref_name }}' ./dist/release.sh
|
2024-10-17 00:17:40 +09:00
|
|
|
|
2024-07-15 23:47:08 +09:00
|
|
|
- name: Release
|
|
|
|
id: use-go-action
|
|
|
|
uses: https://gitea.com/actions/release-action@main
|
|
|
|
with:
|
|
|
|
files: |-
|
2024-12-17 14:02:54 +09:00
|
|
|
dist/fortify-**
|
2024-07-15 23:47:08 +09:00
|
|
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|