Skip to content

Commit

Permalink
Merge pull request #10 from comboomPunkTsucht/dev
Browse files Browse the repository at this point in the history
.
  • Loading branch information
mcpeapsUnterstrichHD authored Sep 4, 2024
2 parents f342b21 + 13e97be commit 7b0dd6c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Genp - Build, Release, and Submit to Homebrew (with a twist!)
name: Genp - Build, Release (with a twist!)

permissions:
contents: write
Expand All @@ -9,27 +9,31 @@ on:
- 'v*.*.*'

jobs:

create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Extract version from Cargo.toml

- name: Extract Version
id: extract_version
run: |
version=$(grep '^version = ' Cargo.toml | sed 's/version = "\(.*\)"/\1/')
version=${GITHUB_REF#refs/tags/v}
echo "version=$version" >> $GITHUB_ENV
- name: Create Changelog File
run: |
echo "Hey there, folks! It's time to unleash the power of Genp v${{ env.version }} - the ultimate CLI tool for generating secure passwords and PINs that'll keep your data safer than a bank vault." > changelog.md
echo "" >> changelog.md
echo "With this release, we've added some extra spice to make things even more fun. Who needs boring old passwords when you can have funky fresh ones straight from the Genp factory?" >> changelog.md
echo "" >> changelog.md
echo "So, what are you waiting for? Grab your copy and start generating passwords that'll make your friends go \"Whoa, how'd you come up with that?\" 🎉" >> changelog.md
- id: create-release
uses: taiki-e/create-gh-release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Genp v${{ env.version }} - Unlocking the Password Vault!
changelog: |
Hey there, folks! It's time to unleash the power of Genp v${{ env.version }} - the ultimate CLI tool for generating secure passwords and PINs that'll keep your data safer than a bank vault.
With this release, we've added some extra spice to make things even more fun. Who needs boring old passwords when you can have funky fresh ones straight from the Genp factory?
So, what are you waiting for? Grab your copy and start generating passwords that'll make your friends go "Whoa, how'd you come up with that?" 🎉
changelog: changelog.md

upload-assets:
needs: create-release
Expand All @@ -55,11 +59,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Extract version from Cargo.toml
id: extract_version
run: |
version=$(grep '^version = ' Cargo.toml | sed 's/version = "\(.*\)"/\1/')
echo "version=$version" >> $GITHUB_ENV

- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: genp
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "genp"
version = "1.0.9"
version = "1.0.10"
description = "A simple Generator for PINs and Passwords"
authors = ["comboom.sucht","mcpeaps_HD"]
edition = "2021"
Expand Down

0 comments on commit 7b0dd6c

Please sign in to comment.