Skip to content

Commit

Permalink
fixing package updload command
Browse files Browse the repository at this point in the history
  • Loading branch information
j-i-l committed May 19, 2024
1 parent 4338af6 commit 5d09716
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
# abn {{ .Tag.Name }}
{{ if .Tag.Previous }}[diff]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_version_enforce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
if: ${{ (steps.published.outputs.labeled == 'false') }}
# this gets the first the changes to the previous clean tag (including manual edits)
run: |
awk '/<a name="${{ steps.release_version.outputs.version }}".*/{a=1};a;/<a name="${{ needs.release_version.outputs.previous_version }}"*/{exit}' NEWS.md | head -n -1 >> body.md
awk '/# abn ${{ steps.release_version.outputs.version }}*/{a=1};a;/# abn ${{ needs.release_version.outputs.previous_version }}*/{exit}' NEWS.md | head -n -1 >> body.md
- name: Create tag and release # 2
if: ${{ (steps.published.outputs.labeled == 'false') }}
run: |
Expand All @@ -187,7 +187,7 @@ jobs:
run: |
gh release upload ${{ steps.release_version.outputs.version }} \
./abn.tar.gz \
--clobber
--clobber \
--repo ${{ env.OWNER }}/${{ env.REPO }}
- name: Deploy to GitHub Pages
id: deployment
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish_version_merging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
gh label create ${{ env.LABEL_PUBLISHED }} --repo ${{ env.OWNER }}/${{ env.REPO }}
continue-on-error: true # make sure the next steps run also on failure
- name: Get the version to release
if: ${{ steps.published.outputs.labeled == 'false' }}
if: ${{ (steps.published.outputs.labeled == 'false') }}
id: release_version
run: |
git fetch --filter=tree:0 origin +refs/tags/*:refs/tags/*
Expand All @@ -128,12 +128,12 @@ jobs:
echo "No trace of a previous release."
fi
- name: Prepare Release note
if: ${{ steps.published.outputs.labeled == 'false' }}
if: ${{ (steps.published.outputs.labeled == 'false') }}
# this gets the first the changes to the previous clean tag (including manual edits)
run: |
awk '/<a name="${{ steps.release_version.outputs.version }}".*/{a=1};a;/<a name="${{ steps.release_version.outputs.previous_version }}"*/{exit}' NEWS.md | head -n -1 >> body.md
awk '/# abn ${{ steps.release_version.outputs.version }}*/{a=1};a;/# abn ${{ needs.release_version.outputs.previous_version }}*/{exit}' NEWS.md | head -n -1 >> body.md
- name: Create tag and release
if: ${{ steps.published.outputs.labeled == 'false' }}
if: ${{ (steps.published.outputs.labeled == 'false') }}
run: |
gh release create ${{ steps.release_version.outputs.version }} \
--target ${{ github.event.pull_request.head.sha }} \
Expand All @@ -154,8 +154,8 @@ jobs:
- name: Upload additional artifacts to the release
run: |
gh release upload ${{ steps.release_version.outputs.version }} \
${{ env.BUILD_LOC }}/abn.tar.gz \
--clobber
./abn.tar.gz \
--clobber \
--repo ${{ env.OWNER }}/${{ env.REPO }}
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 5d09716

Please sign in to comment.