mirror of
https://github.com/Lifailon/lazyjournal.git
synced 2026-11-11 01:09:46 +01:00
3b42caf33c
Bumps the go-dependencies group with 2 updates: [actions/upload-artifact](https://github.com/actions/upload-artifact) and [actions/download-artifact](https://github.com/actions/download-artifact). Updates `actions/upload-artifact` from 4 to 6 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v4...v6) Updates `actions/download-artifact` from 4 to 7 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v4...v7) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: go-dependencies - dependency-name: actions/download-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: go-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: Build rpm packages and push to Fedora Copr
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
Upload:
|
|
description: 'Upload rpm packages to artifacts'
|
|
default: true
|
|
type: boolean
|
|
Push:
|
|
description: 'Publish to Copr'
|
|
default: false
|
|
type: boolean
|
|
|
|
jobs:
|
|
copr:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository (all commits)
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: 1.25
|
|
|
|
- name: Add rpm format to goreleaser config
|
|
run: echo -e "\n - rpm" >> .goreleaser.yaml
|
|
|
|
- name: Build packages using goreleaser
|
|
uses: goreleaser/goreleaser-action@v6
|
|
with:
|
|
distribution: goreleaser
|
|
args: release --clean --skip=publish --skip=validate
|
|
|
|
- name: Upload rpm package
|
|
if: ${{ github.event.inputs.Upload == 'true' }}
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: rpm-packages
|
|
path: dist/*.rpm
|
|
|
|
- name: Install copr cli
|
|
if: ${{ github.event.inputs.Push == 'true' }}
|
|
run: pip install copr-cli
|
|
|
|
- name: Publish to Copr
|
|
if: ${{ github.event.inputs.Push == 'true' }}
|
|
env:
|
|
COPR_CONFIG: ${{ secrets.COPR_CONFIG }}
|
|
run: |
|
|
mkdir -p ~/.config
|
|
echo "$COPR_CONFIG" > ~/.config/copr
|
|
copr-cli build lazyjournal dist/*.rpm |