From c8311bd95ac03df62eab910eebf3031c1d827309 Mon Sep 17 00:00:00 2001 From: David Bliss Date: Sun, 10 Mar 2024 16:27:02 +0000 Subject: [PATCH] feat: Semantic release...again --- .github/workflows/release.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fbd0553..01e4621 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,8 +22,16 @@ jobs: output_dir: out - name: Rename PDF run: cp out/README.pdf ./david_bliss_cv.pdf - - name: Upload Artefact - uses: actions/upload-artifact@v4 + - name: Semantic Release + id: semantic + uses: cycjimmy/semantic-release-action@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: david_bliss_cv.pdf - path: david_bliss_cv.pdf + branch: main + - name: Release + if: steps.semantic.outputs.new_release_published == 'true' + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ steps.semantic.outputs.new_release_git_tag }} + files: david_bliss_cv.pdf