Skip to content

initial test of automated release of smaller tarball #1

initial test of automated release of smaller tarball

initial test of automated release of smaller tarball #1

Workflow file for this run

name: Create Release
on:
push:
branches:
- 'main'
tags:
- v*
permissions:
contents: write
jobs:
release:
name: Release pushed tag
runs-on: ubuntu-22.04
steps:
- name: Create release
- id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes
- name: build artifacts
run: tar --exclude="test" --exclude=".git" --exclude=".github" --exclude=".snakemake" -zcvf harpy.${{tag#v}}.tar.gz .
- name: upload tarball
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./harpy.${{tag#v}}.tar.gz
asset_name: harpy.${{tag#v}}.tar.gz
asset_content_type: application/gzip