Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
- set proper env variable to pass github token
  • Loading branch information
rrashidov committed Jul 18, 2024
1 parent ca664b3 commit 36fc2d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,23 @@ jobs:
- name: Create draft release
env:
VERSION: ${{ steps.version.outputs.version }}
GH_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }}
shell: bash
run: |
gh release create "${VERSION}" --draft --notes-file RELEASE.md
- name: Publish Release
env:
VERSION: ${{ steps.version.outputs.version }}
GH_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }}
shell: bash
run: |
gh release edit "${VERSION}" --draft=false --latest
- name: Upload release artifacts
env:
VERSION: ${{ steps.version.outputs.version }}
GH_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }}
shell: bash
run: |
gh release upload "${VERSION}" "./release-${VERSION}/cfapi-default-cr.yaml"
Expand Down

0 comments on commit 36fc2d4

Please sign in to comment.