Skip to content

[Documentation] Release (#1316) #61

[Documentation] Release (#1316)

[Documentation] Release (#1316) #61

Workflow file for this run

######################## GNU General Public License 3.0 ########################
## ##
## Copyright (C) 2023 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 <https://www.gnu.org/licenses/>. ##
## ##
################################################################################
################################################################################
##
## AUTHOR Kevin Matthes
## BRIEF Release a new version of this project.
## COPYRIGHT GPL-3.0
## DATE 2023
## 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@v2.0.4
with:
generate_release_notes: true
tag_name: v${{ steps.tag_name.outputs.version }}
- run: |
rustup update
cargo login ${{ secrets.CRATES_IO_GITHUB_AERUGINOUS_UPDATE_TOKEN }}
cargo publish
################################################################################