Compare commits
11 Commits
2337fddd47
...
p1.0.8
| Author | SHA1 | Date | |
|---|---|---|---|
| 989d92698b | |||
| f840f8fa56 | |||
| 47e0f31b34 | |||
| 971d01ff33 | |||
| 4fd4c51f8b | |||
| cf2ae008ef | |||
| 73bf305ba3 | |||
| 1dbd2b44c5 | |||
| 6cf9198957 | |||
| b6b5a410eb | |||
| dd2f95fc32 |
@@ -1,6 +1,10 @@
|
|||||||
name: Build and Release Project
|
name: Build and Release Project
|
||||||
run-name: Building and Releasing Main Branch 🚀
|
run-name: Building and Releasing Main Branch 🚀
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'r**'
|
||||||
|
- '!p**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -13,6 +17,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Clone Project
|
- name: Clone Project
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
ref: main
|
||||||
- name: Setup dotnet
|
- name: Setup dotnet
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
@@ -24,12 +30,12 @@ jobs:
|
|||||||
run: tar -cvzf ${{ matrix.publishprofile }}.tar.gz -C GiteaTest/publish .
|
run: tar -cvzf ${{ matrix.publishprofile }}.tar.gz -C GiteaTest/publish .
|
||||||
- name: Pack Windows Release
|
- name: Pack Windows Release
|
||||||
if: ${{ matrix.publishprofile == 'PublishWinX64' }}
|
if: ${{ matrix.publishprofile == 'PublishWinX64' }}
|
||||||
run: zip ${{ matrix.publishprofile }}.zip GiteaTest/publish/*
|
run: cd GiteaTest/publish/ && zip ../../${{ matrix.publishprofile }}.zip *
|
||||||
- name: Release Files
|
- name: Release Files
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
name: Yee
|
name: Yee
|
||||||
body: Test
|
body: Body
|
||||||
prerelease: false
|
prerelease: false
|
||||||
md5sum: true
|
md5sum: true
|
||||||
files: |-
|
files: |-
|
||||||
44
.gitea/workflows/PreRelease.yaml
Normal file
44
.gitea/workflows/PreRelease.yaml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
name: Build and Release Prerelease
|
||||||
|
run-name: Building and Releasing Prerelease Branch 🚀
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'p**'
|
||||||
|
- '!r**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
dotnet: [ '8.0.405' ]
|
||||||
|
publishprofile: [ 'PublishLinuxX64', 'PublishWinX64' ]
|
||||||
|
name: Publish with Dotnet ${{ matrix.dotnet }} and Profile ${{ matrix.publishprofile }}
|
||||||
|
steps:
|
||||||
|
- name: Clone Project
|
||||||
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
ref: prerelease
|
||||||
|
run: echo "RELEASE_VERSION=${GITEA_REF#refs/*/}" >> $GITEA_ENV
|
||||||
|
run: echo "RELEASE_MESSAGE=${ git tag -l --format='%(contents:subject)' '$RELEASE_VERSION' }" >> $GITEA_ENV
|
||||||
|
- name: Setup dotnet
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ matrix.dotnet }}
|
||||||
|
- name: Build / Publish Project
|
||||||
|
run: dotnet publish GiteaTest.sln -p:PublishProfile=${{ matrix.publishprofile }}
|
||||||
|
- name: Pack Linux Release
|
||||||
|
if: ${{ matrix.publishprofile == 'PublishLinuxX64' }}
|
||||||
|
run: tar -cvzf ${{ matrix.publishprofile }}.tar.gz -C GiteaTest/publish .
|
||||||
|
- name: Pack Windows Release
|
||||||
|
if: ${{ matrix.publishprofile == 'PublishWinX64' }}
|
||||||
|
run: cd GiteaTest/publish/ && zip ../../${{ matrix.publishprofile }}.zip *
|
||||||
|
- name: Release Files
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
name: Yee
|
||||||
|
body: Body
|
||||||
|
prerelease: true
|
||||||
|
md5sum: true
|
||||||
|
files: |-
|
||||||
|
${{ matrix.publishprofile }}.*
|
||||||
Reference in New Issue
Block a user