Skip to content

Commit

Permalink
ci: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Oct 2, 2024
1 parent 0e1ab9c commit 665b1b0
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
cp result cv.pdf
- name: Upload build assets
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: assets
path: cv.pdf
Expand All @@ -58,35 +58,18 @@ jobs:
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Download build assets (${{ matrix.assets.input }})
uses: actions/download-artifact@v4

- name: Create pre-release (${{ needs.dependencies.outputs.version }})
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.run_number }}-${{ needs.dependencies.outputs.version }}
release_name: Version ${{ github.run_number }} (${{ needs.dependencies.outputs.version }})
name: Version ${{ github.run_number }} (${{ needs.dependencies.outputs.version }})
draft: false
prerelease: true

assets:
name: Upload release assets
runs-on: ubuntu-latest
needs: [dependencies,release]

steps:
- name: Download build assets (${{ matrix.assets.input }})
uses: actions/download-artifact@v3
with:
name: assets
path: assets

- name: Upload release assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: assets/cv.pdf
asset_name: cv.pdf
asset_content_type: application/pdf
files: |
./*.pdf

0 comments on commit 665b1b0

Please sign in to comment.