From 517981ee164050fc9a5392b2229c7890ffccd9f8 Mon Sep 17 00:00:00 2001 From: Ivan Bessarabov Date: Sun, 12 Nov 2023 10:51:32 +0000 Subject: [PATCH] Release.yml --- .gitattributes | 2 ++ .github/workflows/Release.yml | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8407099 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +README.md export-ignore +tests/ export-ignore diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 2beffd8..91a16b7 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -13,9 +13,10 @@ jobs: steps: - uses: actions/checkout@master - - name: Prepare release and create GitHub release - run: | - gh release create ${{ github.ref }} -t "Release ${{ github.ref }}" -n "Release notes for ${{ github.ref }}" + - name: Add version information + run: sed -i "s/VERSION = 'dev';/VERSION = '${{ github.ref_name }}'" tsv2table + + - name: Create GitHub release + run: gh release create ${{github.ref_name}} -t "Release ${{github.ref_name}}" tsv2table env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -