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 f2f9d21
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 106 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.

15 changes: 15 additions & 0 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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:
- name: Release beta
uses: ./.github/workflows/jreleaser.yml
with:
release-script-to-run: chore/release-beta.sh
secrets: inherit
24 changes: 24 additions & 0 deletions .github/workflows/release-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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:
- name: Release
uses: ./.github/workflows/jreleaser.yml
with:
release-script-to-run: chore/release.sh ${{ github.event.inputs.version }}
secrets: inherit
15 changes: 15 additions & 0 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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:
- name: Release nightly
uses: ./.github/workflows/jreleaser.yml
with:
release-script-to-run: chore/release-nightly.sh
secrets: inherit
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
description = "A small flake building maven projects";
description = "Spoon is a metaprogramming library to analyze and transform Java source code. 🥄 is made with ❤️, 🍻 and ✨. It parses source files to build a well-designed AST with powerful analysis and transformation API.";

# Nixpkgs / NixOS version to use.
inputs = {
Expand Down

0 comments on commit f2f9d21

Please sign in to comment.