Skip to content

Commit

Permalink
Test cd
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaos committed Aug 19, 2024
1 parent f172a2f commit 918743f
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: CD # Continuous Deployment

on:
push:
tags:
- '[v]?[0-9]+.[0-9]+.[0-9]+'
- '[v]?[0-9]+.[0-9]+.[0-9]+-[a-z]+.[0-9]+'
branches:
- test-cd

jobs:
publish:
Expand Down Expand Up @@ -86,9 +85,11 @@ jobs:
- name: install strip command
shell: bash
run: |
if [[ ${{ matrix.target }} == aarch64-unknown-linux-gnu ]]; then
sudo apt update
sudo apt-get install -y binutils-aarch64-linux-gnu
fi
if [[ ${{ matrix.target }} == aarch64-unknown-linux-musl ]]; then
sudo apt update
sudo apt-get install -y binutils-aarch64-linux-gnu
fi
Expand All @@ -112,7 +113,7 @@ jobs:
########## create tar.gz ##########
RELEASE_NAME=${{ matrix.binary-name }}-${GITHUB_REF/refs\/tags\//}-${{ matrix.os-name }}-${{ matrix.architecture }}
RELEASE_NAME=${{ matrix.binary-name }}-test-${{ matrix.os-name }}-${{ matrix.architecture }}
tar czvf $RELEASE_NAME.tar.gz $BINARY_NAME
Expand All @@ -124,16 +125,15 @@ jobs:
else
shasum -a 256 $RELEASE_NAME.tar.gz > $RELEASE_NAME.sha256
fi
- name: Releasing assets
uses: softprops/action-gh-release@v1
with:
files: |
target/${{ matrix.target }}/release/${{ matrix.binary-name }}-*.tar.gz
target/${{ matrix.target }}/release/${{ matrix.binary-name }}-*.sha256
# - name: Releasing assets
# uses: softprops/action-gh-release@v1
# with:
# files: |

env:
# target/${{ matrix.target }}/release/${{ matrix.binary-name }}-*.tar.gz
# target/${{ matrix.target }}/release/${{ matrix.binary-name }}-*.sha256

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# env:

# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 918743f

Please sign in to comment.