diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d23b3d8..a5c0275 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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