From 918743f19bde6b42608555407f54871f7b122be3 Mon Sep 17 00:00:00 2001 From: Takumasa Sakao Date: Mon, 19 Aug 2024 18:41:26 +0900 Subject: [PATCH] Test cd --- .github/workflows/cd.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 51f62aa..28ac1f3 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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: @@ -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 @@ -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 @@ -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 }}