jx/.gitea/workflows/release.yaml
Matthew Rich 53321d9640
Some checks failed
Lint / golangci-lint (push) Successful in 9m42s
Declarative Tests / test (push) Successful in 21s
Declarative Tests / build (push) Failing after 34s
test build job
2024-05-26 14:28:45 -07:00

39 lines
1.0 KiB
YAML

name: Releases
on:
create:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
container:
image: fedora:latest
env:
GOPATH: /
SSH_AUTH_SOCK: /tmp/ssh.sock
ENVIRONMENT: dev
volumes:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/gitconfig:/etc/gitconfig:ro"
- "/${{ env.SSH_AUTH_SOCK }}:/tmp/ssh.sock"
- "/opt/gitea/act_runner/.ssh/known_hosts:/root/.ssh/known_hosts"
- "/opt/gitea/act_runner/.gitconfig:/root/.gitconfig:ro"
- "/opt/gitea/act_runner/.git-credentials:/root/.git-credentials:ro"
- "/etc/ssl/certs:/etc/ssl/certs:ro"
options: --cpus 10
steps:
- uses: actions/checkout@v3
- run: echo "VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- run: dnf install -y dnf-plugins-core
- run: dnf builddep build/jx.spec
- run: make rpm
- uses: ncipollo/release-action@v1
with:
artifacts: "jx,/root/rpmbuild/**/*.rpm"