From e993cc91a78ccd7837023606e36b5a1e997afb24 Mon Sep 17 00:00:00 2001 From: Kevin Matthes <92332892+kevinmatthes@users.noreply.github.com> Date: Fri, 12 Jan 2024 17:31:29 +0100 Subject: [PATCH 1/2] Added ::= .github/workflows/release.yml --- .github/workflows/release.yml | 64 +++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a7e65d5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,64 @@ +######################## GNU General Public License 3.0 ######################## +## ## +## Copyright (C) 2024 Kevin Matthes ## +## ## +## This program is free software: you can redistribute it and/or modify ## +## it under the terms of the GNU General Public License as published by ## +## the Free Software Foundation, either version 3 of the License, or ## +## (at your option) any later version. ## +## ## +## This program is distributed in the hope that it will be useful, ## +## but WITHOUT ANY WARRANTY; without even the implied warranty of ## +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## +## GNU General Public License for more details. ## +## ## +## You should have received a copy of the GNU General Public License ## +## along with this program. If not, see . ## +## ## +################################################################################ + +################################################################################ +## +## AUTHOR Kevin Matthes +## BRIEF Release a new version of this project. +## COPYRIGHT GPL-3.0 +## DATE 2024 +## FILE release.yml +## NOTE See `LICENSE' for full license. +## See `README.md' for project details. +## +################################################################################ + +name: release + +on: + push: + branches: + - main + paths: + - .version + +permissions: + contents: write + +jobs: + release: + if: github.repository == 'kevinmatthes/aeruginous-rs' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.1 + + - id: tag_name + run: echo "version=$(cat .version)" >> "$GITHUB_OUTPUT" + + - uses: softprops/action-gh-release@v0.1.15 + with: + generate_release_notes: true + tag_name: v${{ steps.tag_name.outputs.version }} + + # - run: | + # rustup update + # cargo login ${{ secrets.CRATES_IO_GITHUB_AERUGINOUS_IO_UPDATE_TOKEN }} + # cargo publish + +################################################################################ From b622f41e5d894818acbe635ffd2a4090a7b241c7 Mon Sep 17 00:00:00 2001 From: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 12 Jan 2024 16:33:15 +0000 Subject: [PATCH 2/2] Create summary of recent changes --- ...240112_163315_GitHub_Actions_release-workflow-init.ron | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 changelog.d/20240112_163315_GitHub_Actions_release-workflow-init.ron diff --git a/changelog.d/20240112_163315_GitHub_Actions_release-workflow-init.ron b/changelog.d/20240112_163315_GitHub_Actions_release-workflow-init.ron new file mode 100644 index 0000000..b880b4d --- /dev/null +++ b/changelog.d/20240112_163315_GitHub_Actions_release-workflow-init.ron @@ -0,0 +1,8 @@ +( + references: {}, + changes: { + "Added": [ + ".github/workflows/release.yml", + ], + }, +)