From 47ddc14e7f88d42a62df0f271bc747bf94060b18 Mon Sep 17 00:00:00 2001 From: Donn Date: Wed, 31 May 2023 12:56:26 +0300 Subject: [PATCH] CI Hotfix --- .github/scripts/generate_tag.py | 2 +- .github/workflows/main.yml | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/scripts/generate_tag.py b/.github/scripts/generate_tag.py index 26817bb..5d226b1 100644 --- a/.github/scripts/generate_tag.py +++ b/.github/scripts/generate_tag.py @@ -25,7 +25,7 @@ latest_tag = None latest_tag_commit = None -commits_with_tags = gh.openlane.tags +commits_with_tags = gh.dffram.tags tags = [tag for _, tag in commits_with_tags] for tag in commits_with_tags: commit, name = tag diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 04834e8..f279f75 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -126,14 +126,13 @@ jobs: shell: bash run: echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV - name: Generate Tag - if: env.PUSHING == '1' run: | echo "NEW_TAG=NO_NEW_TAG" >> $GITHUB_ENV if [ "${{ github.event_name }}" != "pull_request" ] && [ "${{ env.BRANCH_NAME }}" = "main" ]; then python3 ./.github/scripts/generate_tag.py fi - - name: All Artifacts - uses: actions/upload-artifact@v3 + - name: Download All Artifacts + uses: actions/download-artifact@v3 with: path: ./artifacts - name: Create Release @@ -143,11 +142,16 @@ jobs: go install github.com/tcnksm/ghr@latest shopt -s nullglob for artifact in ./artifacts/*; do + echo "Uploading $artifact to releaseā€¦" + gzipped=./$(basename $artifact).tgz + tar -czvf $gzipped $artifact ghr\ -owner AUCOHL\ -repository DFFRAM\ - -committish HEAD\ + -commitish main\ + -token ${{ secrets.GITHUB_TOKEN }}\ -replace\ $NEW_TAG\ - $artifact + $gzipped + echo "Done with $artifact." done