Skip to content

Commit

Permalink
Upload ldlm.proto on release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
imoore76 committed Apr 23, 2024
1 parent 13a6c21 commit 246a9e2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/upload_proto_asset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Upload Protobuf Fule"

on:
release:
types:
- published

jobs:
release:
name: "Release"

runs-on: "ubuntu-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Get upload_url"
run: echo "::set-output name=upload_url::https://uploads.github.com/repos/$GITHUB_REPOSITORY/releases/$(jq --raw-output '.release.id' $GITHUB_EVENT_PATH)/assets{?name,label}"
id: release

- name: "Upload ldlm.proto"
uses: "actions/upload-release-asset@v1"
env:
GITHUB_TOKEN: ${{ secrets.GH_GOREL }}
with:
asset_content_type: "text/plain"
asset_name: "ldlm.proto"
asset_path: "ldlm.proto"
upload_url: ${{ steps.release.outputs.upload_url }}

0 comments on commit 246a9e2

Please sign in to comment.