-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
344 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
required: true | ||
type: string | ||
description: "Version to be released, like 1.2.3" | ||
nextVersion: | ||
required: true | ||
type: string | ||
description: "Version to be set afterwards, like 1.2.4-SNAPSHOT" | ||
dryRun: | ||
required: true | ||
default: true | ||
type: boolean | ||
description: "Uncheck to actually execute the release" | ||
selfHostedRunner: | ||
required: true | ||
default: false | ||
type: boolean | ||
description: "Has no effect, just as a reminder that the self-hosted windows runner must be running" | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
required: true | ||
type: string | ||
description: "Version to be released, like 1.2.3" | ||
nextVersion: | ||
required: true | ||
type: string | ||
description: "Version to be set afterwards, like 1.2.4-SNAPSHOT" | ||
dryRun: | ||
required: true | ||
default: true | ||
type: boolean | ||
description: "Uncheck to actually execute the release" | ||
selfHostedRunner: | ||
required: true | ||
default: false | ||
type: boolean | ||
description: "Has no effect, just as a reminder that the self-hosted windows runner must be running" | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/buildNative.yml | ||
release: | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
env: | ||
githubReleasesUrl: https://api.github.com/repos/{{github.repository}}/releases | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: "Check out source" | ||
- name: "Display structure of working directory" | ||
run: ls . | ||
- uses: actions/download-artifact@v4 | ||
name: "Download native artifacts" | ||
with: | ||
path: ~/artifacts | ||
- name: "Display structure of artifacts folder" | ||
run: ls -R ~/artifacts | ||
- name: "Copy artifacts to include folders" | ||
run: | | ||
mv ~/artifacts/coreLinux/* ./releases/linux-amd64-release/include/executables/ | ||
chmod +x ./releases/linux-amd64-release/include/executables/nzbhydra2 | ||
mv ~/artifacts/coreWindows/* ./releases/windows-release/include/executables/ | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
cache: 'maven' | ||
- name: "Run release script" | ||
run: | | ||
misc/build-and-release.sh ${{ github.event.inputs.releaseVersion }} ${{ github.event.inputs.nextVersion }} ${{ github.event.inputs.dryRun }} | ||
build: | ||
uses: ./.github/workflows/buildNative.yml | ||
release: | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
env: | ||
githubReleasesUrl: https://api.github.com/repos/{{github.repository}}/releases | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: "Check out source" | ||
- name: "Display structure of working directory" | ||
run: ls . | ||
- uses: actions/download-artifact@v4 | ||
name: "Download native artifacts" | ||
with: | ||
path: ~/artifacts | ||
- name: "Display structure of artifacts folder" | ||
run: ls -R ~/artifacts | ||
- name: "Copy artifacts to include folders" | ||
run: | | ||
mv ~/artifacts/coreLinux/* ./releases/linux-amd64-release/include/executables/ | ||
chmod +x ./releases/linux-amd64-release/include/executables/nzbhydra2 | ||
mv ~/artifacts/coreWindows/* ./releases/windows-release/include/executables/ | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
cache: 'maven' | ||
- name: "Run release script" | ||
run: | | ||
misc/build-and-release.sh ${{ github.event.inputs.releaseVersion }} ${{ github.event.inputs.nextVersion }} ${{ github.event.inputs.dryRun }} |
Oops, something went wrong.