Welcome to the blog/wiki/zettelkasten of Sebastian Hoß. The latest article is displayed below, for older articles either pick one from the navigation or take a look at the sitemap.

The source code for this site can be found at https://github.com/metio/seb.

Upload release assets with GitHub Actions View article history Edit article

Published:
Talks about: , , , , and

The actions/upload-release-asset action allows to upload a release artifact in your GitHub Action.

name: <PIPELINE>
jobs:
  build:
    runs-on: <RUN_ON>
    steps:
      - name: Upload Release Asset
        id: upload_release_asset
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: ./some/path/to/file.zip
          asset_name: public-name-for-file.zip
          asset_content_type: application/zip