From 319319a538ad5fc0ab1feb5790ac462e474cf35a Mon Sep 17 00:00:00 2001 From: Rishav Singh <70544726+rishav-singh-0@users.noreply.github.com> Date: Sun, 3 Jul 2022 03:06:21 +0530 Subject: [PATCH] updated workflow --- .github/workflows/my-resume.yml | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/.github/workflows/my-resume.yml b/.github/workflows/my-resume.yml index b6667b0..8119f52 100644 --- a/.github/workflows/my-resume.yml +++ b/.github/workflows/my-resume.yml @@ -1,5 +1,3 @@ -# This is a basic workflow to help you get started with Actions - name: Build my-resume # Controls when the workflow will run @@ -30,7 +28,36 @@ jobs: # ./fonts/*.otf - name: Upload PDF - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 + id: upload with: name: PDF path: my-resume/resume.pdf + + release: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/checkout@v3 + + - name: Download Artifacts + uses: actions/download-artifact@master + id: download + with: + name: PDF + path: artifact + + - name: Set outputs + id: vars + run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + + - name: Github Release + id: create_release + uses: softprops/action-gh-release@v1 + with: + files: | + ${{ steps.download.outputs.download-path }}/* + tag_name: ${{ steps.vars.outputs.sha_short }} + name: Release ${{ steps.vars.outputs.sha_short }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}