-
-
Notifications
You must be signed in to change notification settings - Fork 9
27 lines (27 loc) · 827 Bytes
/
Copy pathrelease_action.yml
File metadata and controls
27 lines (27 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Release Action
on:
release:
types: [published]
jobs:
release:
name: Update Github Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./clove-unit.h
asset_name: clove-unit.h
asset_content_type: text/plain
- name: Compute Archive SHA256
run: |
URL=${{ github.server_url }}/${{ github.repository }}/archive/${{ github.ref }}.tar.gz
echo "URL: ${URL}"
curl -L ${URL} -o archive.tar.gz
sha256sum archive.tar.gz