-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (35 loc) · 986 Bytes
/
publish.yml
File metadata and controls
39 lines (35 loc) · 986 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
30
31
32
33
34
35
36
37
38
39
name: Publish
on:
release:
types:
- published
workflow_dispatch:
inputs:
tag_name:
description: "Tag name"
required: true
type: string
jobs:
build:
uses: ./.github/workflows/build.yml
with:
tag_name: ${{ inputs.tag_name || github.event.release.tag_name }}
should_upload_artifacts: true
publish:
name: Publish
needs: build
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
path: artifacts
merge-multiple: true
- name: Upload assets to release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Upload all files from the build job
for file in artifacts/*; do
gh release upload ${{ inputs.tag_name || github.event.release.tag_name }} $file --repo ${{ github.repository }}
done