Skip to content

Add composer install to release workflow #5

Add composer install to release workflow

Add composer install to release workflow #5

Workflow file for this run

name: Create release
on:
push:
tags:
- v**
jobs:
create-release:
name: "Create release"
runs-on: ubuntu-latest
env:
ARCHIVE: nc-share-tools.tar.gz
ARCHIVE_PATH: ${{ runner.tmp }}

Check failure on line 13 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Create release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 13, Col: 21): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.tmp
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: php-actions/composer@v6
with:
dev: no
- name: "Create archive"
run: tar czf ${ARCHIVE} -X ${REPO_PATH}/.tarignore ${REPO_PATH##*/}
working-directory: ${{ env.ARCHIVE_PATH }}
env:
REPO_PATH: ${{ github.workspace }}
- name: "Create hash files"
run: sha512sum $ARCHIVE | awk '{ print $1 }' > "${ARCHIVE}.sha512"
working-directory: ${{ env.ARCHIVE_PATH }}
- name: "Create release"
run: gh release create ${GITHUB_REF_NAME} ${{ env.ARCHIVE_PATH }}/${ARCHIVE} ${{ env.ARCHIVE_PATH }}/${ARCHIVE}.sha512 --generate-notes --verify-tag
working-directory: ${{ github.workspace }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}