Skip to content

Commit

Permalink
feat(ci): update actions dependencies (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
chujimmy authored May 12, 2023
1 parent dffc49d commit 5cc8880
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/generate-cv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Checkout Github repository
id: github_checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: "0"
- name: Run Docker container
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Upload File to Artifact
id: file_upload_artifact
if: ${{ github.event_name == 'pull_request' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: cv
path: ${{ steps.output_set.outputs.output_folder }}/*
Expand All @@ -81,31 +81,19 @@ jobs:
- name: Create new tag
id: tag_create
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: anothrNick/github-tag-action@1.46.0
uses: anothrNick/github-tag-action@1.64.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: false
RELEASE_BRANCHES: main
- name: Create release
id: release_create
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
files: cv.zip
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.tag_create.outputs.new_tag }}
release_name: ${{ steps.tag_create.outputs.new_tag }}
body: |
New changes:
- ${{ github.event.head_commit.message }}
- name: Upload CV to Asset
id: cv_upload_asset
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release_create.outputs.upload_url }}
asset_path: ./cv.zip
asset_name: cv.zip
asset_content_type: application/zip

0 comments on commit 5cc8880

Please sign in to comment.