Skip to content

Commit

Permalink
Fix release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignasi Fosch committed Dec 28, 2024
1 parent 53f2e44 commit e4e7cb5
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get tag name
id: tag_name
run: |
echo "name=SOURCE_TAG::${GITHUB_REF#refs/tags/}" >> ${GITHUB_OUTPUT}
- name: Build and publish Docker image
run: |
echo ${{ steps.vars.outputs.tag }}
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u EDyO --password-stdin
docker build --pull --rm -f "appu/Dockerfile" -t ghcr.io/edyo/appu:${{ steps.tag_name.outputs.SOURCE_TAG }} appu/.
docker push ghcr.io/edyo/appu:${{ steps.tag_name.outputs.SOURCE_TAG }}
docker build --pull --rm -f "appu/Dockerfile" -t ghcr.io/edyo/appu:${{ github.ref_name }} appu/.
docker push ghcr.io/edyo/appu:${{ github.ref_name }}
release:
needs:
- docker
Expand All @@ -39,9 +36,8 @@ jobs:
- name: Build
run: |
scripts/build.sh ${{ matrix.destination_os }} amd64
- name: Get the version
id: get_version
run: echo "name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)" >> ${GITHUB_OUTPUT}
- name: Release built binaries
run: "echo ${{ secrets.TEST_TOKEN }} | gh auth login --with-token \ngh release upload ${{ steps.get_version.outputs.VERSION }} build/*"

run: |
echo ${{ secrets.TEST_TOKEN }} | gh auth login --with-token
gh release list | grep -E "^${{ github.ref_name }}$" || gh release create ${{ github.ref_name }}
gh release upload ${{ github.ref_name }} build/*

0 comments on commit e4e7cb5

Please sign in to comment.