Skip to content

Commit

Permalink
Merge pull request #3 from Staketab/pre-build
Browse files Browse the repository at this point in the history
test release
  • Loading branch information
duccas authored Oct 20, 2023
2 parents 5b65403 + fda7a8d commit 50cedc7
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@ jobs:
echo "::set-output name=version::$(cat release | grep version | cut -d= -f2)"
echo "::set-output name=description::$(awk '/description=/{flag=1; next} /another-marker=/{flag=0} flag' release)"
- name: Setup GitHub CLI
run: |
sudo apt-get install -y gh
- name: Authenticate with GitHub CLI
run: echo "${{ secrets.GIT_TOKEN }}" | gh auth login --with-token

- name: Create GitHub Release
uses: gh-actions/gh-release@v1
with:
tag_name: ${{ steps.get_info.outputs.version }}
release_name: Release ${{ steps.get_info.outputs.version }}
body: ${{ steps.get_info.outputs.description }}
draft: false
prerelease: false
token: ${{ secrets.GIT_TOKEN }}
run: |
gh release create ${{ steps.get_info.outputs.version }} \
--title "Release ${{ steps.get_info.outputs.version }}" \
--notes "${{ steps.get_info.outputs.description }}" \
--repo ${{ github.repository }} \
--draft=false \
--prerelease=false

0 comments on commit 50cedc7

Please sign in to comment.