Skip to content

Commit 70e570b

Browse files
committed
githubify pipelines
1 parent efbdb74 commit 70e570b

5 files changed

Lines changed: 63 additions & 66 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
tags:
4+
- *
5+
6+
env:
7+
DOTNET_VERSION: '10.0.x'
8+
NUGET_REGISTRY_URL: https://nuget.pkg.github.com/devpikachu/index.json
9+
NUGET_REGISTRY_USERNAME: devpikachu
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
project:
18+
- Common.Build
19+
- Common.Build.Generator
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v6
23+
- name: Setup .NET SDK 10
24+
uses: actions/setup-dotnet@v5
25+
with:
26+
dotnet-version: ${{ env.DOTNET_VERSION }}
27+
- name: Build
28+
run: bash build.sh --target Package --general-project ${{ matrix.project }} --general-version $GITHUB_REF_NAME
29+
- name: Publish
30+
run: |
31+
dotnet nuget add source --name github --username $NUGET_REGISTRY_USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text $NUGET_REGISTRY_URL
32+
dotnet nuget push --source github out/*.nupkg

.github/workflows/release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
tags:
4+
- *
5+
6+
env:
7+
DOTNET_VERSION: '10.0.x'
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
project:
16+
- Common.Build
17+
- Common.Build.Generator
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
- name: Setup .NET SDK 10
22+
uses: actions/setup-dotnet@v5
23+
with:
24+
dotnet-version: ${{ env.DOTNET_VERSION }}
25+
- name: Build
26+
run: bash build.sh --target Archive --general-project ${{ matrix.project }} --general-version $GITHUB_REF_NAME
27+
- name: Release
28+
uses: softprops/action-gh-release@v2
29+
with:
30+
draft: true
31+
files: out/*.zip

.woodpecker/build.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.woodpecker/publish.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.woodpecker/release.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)