🚇🩹 Fix publish workflow (#1401) #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🚀🚇 Release Validation and Examples | |
on: | |
push: | |
tags: | |
- v** | |
jobs: | |
release-examples: | |
name: 🚀 Release Examples | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: ⏬ Checkout examples repo | |
uses: actions/checkout@v4 | |
with: | |
repository: glotaran/pyglotaran-examples | |
fetch-depth: 1 | |
- name: 🏷️ Get tag name | |
id: tag | |
uses: devops-actions/[email protected] | |
- name: 📚 Create release body | |
run: | | |
echo "# pyglotaran-examples ${{ steps.tag.outputs.tag }} Release Notes" > ${{ github.workspace }}-release-body.txt | |
echo "This repository hold examples showcasing the use of [pyglotaran](https://github.com/glotaran/pyglotaran/)." >> ${{ github.workspace }}-release-body.txt | |
echo "And was used for validation of the [pyglotaran ${{ steps.tag.outputs.tag }} release](https://github.com/glotaran/pyglotaran/releases/tag/${{ steps.tag.outputs.tag }})." >> ${{ github.workspace }}-release-body.txt | |
- name: 🚀 Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
repository: glotaran/pyglotaran-examples | |
body_path: ${{ github.workspace }}-release-body.txt | |
token: ${{ secrets.release_token }} | |
release-validation: | |
name: 🚀 Release Validation | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: ⏬ Checkout validation repo | |
uses: actions/checkout@v4 | |
with: | |
repository: glotaran/pyglotaran-validation | |
fetch-depth: 1 | |
- name: 🏷️ Get tag name | |
id: tag | |
uses: devops-actions/[email protected] | |
- name: 📚 Create release body | |
run: | | |
echo "# pyglotaran-validation ${{ steps.tag.outputs.tag }} Release Notes" > ${{ github.workspace }}-release-body.txt | |
echo "This repository was used for validation of the [pyglotaran ${{ steps.tag.outputs.tag }} release](https://github.com/glotaran/pyglotaran/releases/tag/${{ steps.tag.outputs.tag }})." >> ${{ github.workspace }}-release-body.txt | |
- name: 🚀 Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
repository: glotaran/pyglotaran-validation | |
body_path: ${{ github.workspace }}-release-body.txt | |
generate_release_notes: true | |
append_body: true | |
token: ${{ secrets.release_token }} |