Skip to content

Commit

Permalink
re: revert to old main workflow; manual tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
cybardev committed Feb 24, 2024
1 parent 3fd6833 commit fce5b75
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,22 @@
name: Tag, Build and Publish Pipeline
name: Build and Publish Pipeline

on:
push:
branches: main
paths: pyproject.toml
tags: "v*"

jobs:
create-tag:
runs-on: ubuntu-latest
if: "${{ github.repository == 'cybardev/resumake' && startsWith(github.event.head_commit.message, 'update: new version') }}"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create Tag
run: |
VERSION_STRING=$(cat pyproject.toml | grep 'version')
TAG=$(python3 -c "print('v' + '${VERSION_STRING}'.split()[2].strip('\"'))")
if [ $(git tag -l "${TAG}") ]; then
git tag "${TAG}" main
git push origin "${TAG}"
else
echo "Tag ${TAG} already exists. Skipping tag creation."
fi
update-resume:
name: Update Resume
needs: create-tag
if: github.repository == 'cybardev/resumake'
uses: ./.github/workflows/update-resume.yml

update-readme:
name: Update README.md
needs: create-tag
uses: ./.github/workflows/readme.yml
publish-package:
name: Publish to PyPI
needs: update-readme
if: github.repository == 'cybardev/resumake'
uses: ./.github/workflows/pypi.yml
publish-docker:
name: Publish Docker image
Expand Down

0 comments on commit fce5b75

Please sign in to comment.