AMRPC/.drone.yml

32 lines
707 B
YAML
Raw Normal View History

2024-04-02 03:11:40 +02:00
kind: pipeline
type: docker
name: build
steps:
2024-04-02 03:56:22 +02:00
- name: Build .Net image
2024-04-02 03:11:40 +02:00
image: mcr.microsoft.com/dotnet/sdk:8.0
commands:
- apt-get update && apt-get install -y zip
2024-04-02 03:12:33 +02:00
- dotnet build . -c Release
2024-04-02 03:56:22 +02:00
- LOC=$(pwd)
- cd AppleMusicRPC/bin/Release/net8.0-windows10.0.22000.0/win-x64
- zip -r $LOC/build.zip ./*
2024-04-02 03:11:40 +02:00
2024-04-02 03:56:22 +02:00
- name: Rename release files
image: alpine
commands:
- mv build.zip release-$DRONE_TAG.zip
when:
event: tag
- name: Push release to Forgejo
2024-04-02 03:11:40 +02:00
image: plugins/gitea-release
settings:
2024-04-02 03:24:05 +02:00
api_key:
from_secret: RELEASE_KEY
base_url: https://forgejo.regnault.dev
2024-04-02 03:56:22 +02:00
files: release-*.zip
2024-04-02 03:24:05 +02:00
when:
event: tag