39 lines
1.0 KiB
YAML
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"
|