Skip to content

Commit

Permalink
CI Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
donn committed May 31, 2023
1 parent a240761 commit 47ddc14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/generate_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 47ddc14

Please sign in to comment.