Skip to content

try this

try this #4

Workflow file for this run

name: Create Release
on:
push:
tags:
- '*'
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" \
--target main \
--title="${GITHUB_REPOSITORY#*/} ${{ github.ref_name }}" \
--generate-notes
- name: build artifacts
run: tar --exclude="test" --exclude=".git" --exclude=".github" --exclude=".snakemake" -zcvf harpy.${{ github.ref_name }}.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.${{ github.ref_name }}.tar.gz
asset_name: harpy.${{ github.ref_name }}.tar.gz
asset_content_type: application/gzip