forked from PrestaShop/hummingbird
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (24 loc) · 763 Bytes
/
Copy pathrelease.yml
File metadata and controls
29 lines (24 loc) · 763 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
28
29
name: Upload Release Asset
on:
release:
types: [published]
jobs:
build:
uses: ./.github/workflows/build.yml
upload:
name: Upload Release Asset
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v8
with:
name: ${{ github.event.repository.name }}
- name: Zip artifact
run: |
zip -r ${{ github.event.repository.name }}.zip . -x ${{ github.event.repository.name }}.zip
- name: Publish to GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.event.release.tag_name }} ${{ github.event.repository.name }}.zip --repo ${{ github.repository }}