Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rishav-singh-0 committed Jul 2, 2022
1 parent 8f0f83f commit 319319a
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/my-resume.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit 319319a

Please sign in to comment.