Skip to content

Commit

Permalink
Updated workflow configurations (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexs-gitK authored Dec 13, 2023
1 parent 0d84793 commit 996a1a0
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release gh-gk Extension

on:
push:
tags:
- 'v*'

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Download Binaries
uses: actions/download-artifact@v2
with:
name: gh-gk-binaries
path: downloaded_binaries

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Assets
run: |
for binary in downloaded_binaries/*; do
echo "Uploading ${binary}"
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: $(file -b --mime-type ${binary})" \
--data-binary @${binary} \
"${{ steps.create_release.outputs.upload_url }}?name=$(basename ${binary})"
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 996a1a0

Please sign in to comment.