Skip to content

Commit

Permalink
feat: Add semantic release action
Browse files Browse the repository at this point in the history
  • Loading branch information
blissd committed Mar 10, 2024
1 parent 082073c commit e89c07e
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,35 @@

on:
push:
tags:
- "*"
branches:
- main

name: "Build PDF"
name: Build PDF

jobs:
build:
name: "Build and Release PDF"
name: Build and Release PDF
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Build PDF from Markdown"
uses: "BaileyJM02/[email protected]"
- name: Checkout
uses: actions/checkout@v3
- name: Build PDF from Markdown
uses: BaileyJM02/[email protected]
with:
input_path: "README.md"
output_dir: "out"
- name: "Rename PDF"
run: "cp out/README.pdf ./david_bliss_cv.pdf"
input_path: README.md
output_dir: out
- name: Rename PDF
run: cp out/README.pdf ./david_bliss_cv.pdf
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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

0 comments on commit e89c07e

Please sign in to comment.