Skip to content

Merge pull request #25 from AdibSadman192/dependabot/npm_and_yarn/npm… #4

Merge pull request #25 from AdibSadman192/dependabot/npm_and_yarn/npm…

Merge pull request #25 from AdibSadman192/dependabot/npm_and_yarn/npm… #4

Workflow file for this run

name: Create Release

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

(Line: 22, Col: 23): Unexpected symbol: 'repository##*/}-${GITHUB_REF_NAME'. Located at position 8 within expression: github.repository##*/}-${GITHUB_REF_NAME, (Line: 23, Col: 23): Unexpected symbol: 'repository##*/'. Located at position 8 within expression: github.repository##*/
on:
push:
tags:
- 'v*' # Trigger on tag creation
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Create ZIP Archive
run: zip -r "${GITHUB_REPOSITORY##*/}-${GITHUB_REF_NAME}.zip" .
- name: Upload Release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./${{ github.repository##*/}-${GITHUB_REF_NAME }}.zip
asset_name: ${{ github.repository##*/ }}-${{ github.ref_name }}.zip
asset_content_type: application/zip