Skip to content

Commit

Permalink
add date to release title
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuzakyl committed Aug 19, 2023
1 parent 5a11f67 commit 6b5c0b1
Showing 1 changed file with 16 additions and 32 deletions.
48 changes: 16 additions & 32 deletions .github/workflows/push-to-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,38 @@ jobs:
# cv-es-industry-succinct.tex
# latexmk_use_xelatex: true

# - name: Upload PDF file
# uses: actions/upload-artifact@v3
# with:
# name: cv-en-es.zip
# path: |
# ./fancy-cv/cv-en-industry-succinct.pdf
# ./fancy-cv/cv-es-industry-succinct.pdf

- name: Get previous tag
id: previoustag
uses: WyriHaximus/github-action-get-previous-tag@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get next version
id: next
uses: WyriHaximus/github-action-next-release-version@1.0.0
- name: 'Get next minor version'
id: semvers
uses: "WyriHaximus/github-action-next-semvers@v1"
with:
version: ${{ steps.previoustag.outputs.tag }}

# - name: 'Get next minor version'
# id: semvers
# uses: "WyriHaximus/github-action-next-semvers@v1"
# with:
# version: ${{ steps.previoustag.outputs.tag }}
- name: Get current date
id: date
run: |
DAY=$(date +%-d)
case "$DAY" in
1|21|31) DAY="$DAY"st;;
2|22) DAY="$DAY"nd;;
3|23) DAY="$DAY"rd;;
*) DAY="$DAY"th;;
esac
echo "date=$(date +'%B') $DAY, $(date +%Y)" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.next.outputs.version }}
release_name: Release ${{ steps.next.outputs.version }}
tag_name: ${{ steps.semvers.outputs.patch }}
release_name: Software Industry CV versions. ${{ env.date }}
draft: false
prerelease: false

Expand All @@ -80,17 +78,3 @@ jobs:
asset_path: ./fancy-cv/cv-es-industry-succinct.pdf
asset_name: cv-es-industry-succinct.pdf
asset_content_type: application/pdf

# - name: Attach PDF to Release
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./cv-en-es.zip
# asset_name: cv-en-es.zip
# asset_content_type: application/zip

# asset_path: fancy-cv/main.pdf
# asset_name: main.pdf
# asset_content_type: application/pdf

0 comments on commit 6b5c0b1

Please sign in to comment.