Skip to content

Commit 074795e

Browse files
author
Ignasi Fosch
committed
Fix release pipeline
1 parent 53f2e44 commit 074795e

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@ jobs:
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v2
13-
- name: Get tag name
14-
id: tag_name
15-
run: |
16-
echo "name=SOURCE_TAG::${GITHUB_REF#refs/tags/}" >> ${GITHUB_OUTPUT}
1713
- name: Build and publish Docker image
1814
run: |
15+
echo ${{ steps.vars.outputs.tag }}
1916
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u EDyO --password-stdin
20-
docker build --pull --rm -f "appu/Dockerfile" -t ghcr.io/edyo/appu:${{ steps.tag_name.outputs.SOURCE_TAG }} appu/.
21-
docker push ghcr.io/edyo/appu:${{ steps.tag_name.outputs.SOURCE_TAG }}
17+
docker build --pull --rm -f "appu/Dockerfile" -t ghcr.io/edyo/appu:${{ github.ref_name }} appu/.
18+
docker push ghcr.io/edyo/appu:${{ github.ref_name }}
2219
release:
2320
needs:
2421
- docker
@@ -39,9 +36,7 @@ jobs:
3936
- name: Build
4037
run: |
4138
scripts/build.sh ${{ matrix.destination_os }} amd64
42-
- name: Get the version
43-
id: get_version
44-
run: echo "name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)" >> ${GITHUB_OUTPUT}
4539
- name: Release built binaries
46-
run: "echo ${{ secrets.TEST_TOKEN }} | gh auth login --with-token \ngh release upload ${{ steps.get_version.outputs.VERSION }} build/*"
47-
40+
run: |
41+
echo ${{ secrets.TEST_TOKEN }} | gh auth login --with-token
42+
gh release create ${{ github.ref_name }} build/*

0 commit comments

Comments
 (0)