Skip to content

Commit

Permalink
ci: fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Jul 16, 2024
1 parent 91f3509 commit bad3c55
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ jobs:
- name: Run tests
run: composer run-script test

- name: Get previous release
id: previous_release
run: |
echo "tag=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)" >> $GITHUB_OUTPUT
- name: Set current version
id: get_version
run: |
echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
echo "${GITHUB_REF#refs/tags/}" > VERSION
echo "VERSION: ${GITHUB_REF#refs/tags/}"
- name: Build cecil.phar
run: composer run-script build

Expand All @@ -76,17 +88,6 @@ jobs:
php cecil.phar build skeleton -vvv
php cecil.phar show:content skeleton
- name: Get previous release
id: previous_release
run: |
echo "tag=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)" >> $GITHUB_OUTPUT
- name: Set current version
id: get_version
run: |
echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
echo "${GITHUB_REF#refs/tags/}" > VERSION
- name: Calculate SHA256 checksum
id: sha256
run: |
Expand Down

0 comments on commit bad3c55

Please sign in to comment.