aboutsummaryrefslogtreecommitdiffhomepage
path: root/.gitea/workflows/release.yml
blob: 545274dbbc7d9700601040c4276c03d65519c99e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Create distribution

on:
  push:
    tags:
      - '*'

jobs:
  release:
    name: Release
    runs-on: ubuntu-latest
    container:
      image: node:16-bookworm-slim
    steps:
      - 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
          acl
          git
          gcc
          pkg-config
          libwayland-dev
          wayland-protocols/bookworm-backports
          libxcb1-dev
          libacl1-dev
        if: ${{ runner.os == 'Linux' }}

      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Setup go
        uses: https://github.com/actions/setup-go@v5
        with:
          go-version: '>=1.23.0'

      - name: Go generate
        run: >-
          go generate ./...

      - name: Build for release
        run: FORTIFY_VERSION='${{ github.ref_name }}' ./dist/release.sh

      - name: Release
        id: use-go-action
        uses: https://gitea.com/actions/release-action@main
        with:
          files: |-
            dist/fortify-**
          api_key: '${{secrets.RELEASE_TOKEN}}'