Skip to content

Commit

Permalink
chore: Bewail
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Al-Istannen committed Aug 26, 2023
1 parent 99f0daf commit cda78b1
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 105 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/beta-release.yml

This file was deleted.

16 changes: 5 additions & 11 deletions .github/workflows/jreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
name: Release

on:
workflow_dispatch:
workflow_call:
inputs:
version:
description: 'Next release version'
release-script-to-run:
required: true
default: 'patch'
type: choice
options:
- major
- minor
- patch
type: string

jobs:
release:
jreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -40,7 +34,7 @@ jobs:
key: ${{ runner.os }}

- name: Do release
run: nix develop .#jReleaser --command chore/release.sh ${{ github.event.inputs.version }}
run: nix develop .#jReleaser --command ${{ inputs.release-script-to-run }}
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/nightly-release.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Release beta version

on:
schedule:
- cron: '0 0 * * 0' # Sundays at 00:00 (https://crontab.guru/#0_0_*_*_0)

jobs:
snapshot:
runs-on: ubuntu-latest
steps:
uses: ./.github/workflows/jreleaser.yml
with:
release-script-to-run: chore/release-beta.sh
secrets: inherit
23 changes: 23 additions & 0 deletions .github/workflows/release-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
workflow_dispatch:
inputs:
version:
description: 'Next release version'
required: true
default: 'patch'
type: choice
options:
- major
- minor
- patch

jobs:
release:
runs-on: ubuntu-latest
steps:
uses: ./.github/workflows/jreleaser.yml
with:
release-script-to-run: chore/release.sh ${{ github.event.inputs.version }}
secrets: inherit
14 changes: 14 additions & 0 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Release nightly version

on:
schedule:
- cron: '0 0 * * *' # Every day at 00:00 UTC (https://crontab.guru/#0_0_*_*_*)

jobs:
nightly:
runs-on: ubuntu-latest
steps:
uses: ./.github/workflows/jreleaser.yml
with:
release-script-to-run: chore/release-nightly.sh
secrets: inherit

0 comments on commit cda78b1

Please sign in to comment.