Skip to content

Merge pull request #30 from pdimens/dev #2

Merge pull request #30 from pdimens/dev

Merge pull request #30 from pdimens/dev #2

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 .

Check failure on line 29 in .github/workflows/createrelease.yml

View workflow run for this annotation

GitHub Actions / Create Release

Invalid workflow file

The workflow is not valid. .github/workflows/createrelease.yml (Line: 29, Col: 14): Unexpected symbol: 'tag#v'. Located at position 1 within expression: tag#v .github/workflows/createrelease.yml (Line: 36, Col: 23): Unexpected symbol: 'tag#v'. Located at position 1 within expression: tag#v
- 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