Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Nov 13, 2024
1 parent 42279fc commit 54e345c
Show file tree
Hide file tree
Showing 3 changed files with 344 additions and 344 deletions.
104 changes: 52 additions & 52 deletions .github/workflows/release.yml
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 }}
Loading

0 comments on commit 54e345c

Please sign in to comment.