jx/.gitea/workflows/release.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 39: cannot unmarshal !!seq into string
Matthew Rich d6c2679416
Some checks failed
Declarative Tests / test (push) Waiting to run
Lint / golangci-lint (push) Has been cancelled
add rpm spec
2024-05-26 02:05:18 -07:00

42 lines
1.2 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/SRPMS/jx-${{ env.VERSION }}-1.fc40.src.rpm"
- "/root/rpmbuild/RPMS/x86_64/jx-${{ env.VERSION }}-1.fc40.x86_64.rpm"